home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / sm2addon.zip / sm2addon.faq < prev    next >
Text File  |  1999-01-28  |  3KB  |  71 lines

  1.  
  2.                          IBM SearchManager/2 AddOn
  3.                                       
  4.                          Frequently asked Questions
  5.      _________________________________________________________________
  6.    
  7.    Q: Where can I find the UNH tool mentioned in readme.txt?
  8.    
  9.    A: You should find version 2.16 of UNH on hobbes: [1]unh216.zip
  10.      _________________________________________________________________
  11.    
  12.    Q: I need SM/2 support for files with format xy. Can you include a
  13.    filter in your AddOn DLL? I'll even pay for it!
  14.    
  15.    A: The main problem here is that the documented API for SM/2
  16.    extensions does not include functions to add new filters to SM/2!
  17.    
  18.    Thus the only way to support new file formats is to convert them into
  19.    another format already known to SM/2. This is the way my DLL
  20.    implements HTML support, it just converts (via an external program)
  21.    the HTML file into plain ascii and let SM/2 index that ascii file.
  22.    
  23.    If you can provide me a filter program, which quickly(!) converts your
  24.    favourite file format into ASCII or another format known to SM/2, send
  25.    me an email and i'll add this feature to my AddOn DLL.
  26.      _________________________________________________________________
  27.    
  28.    Q: I need support for Postscript/Acrobat files. There is a program
  29.    called pstotext which converts them to ascii. Can you change your
  30.    AddOn DLL to use it?
  31.    
  32.    A: I could, but I will not do this!
  33.    
  34.    If you ever used pstotext, you should have noticed that it's working
  35.    well, but very slow. It can take several minutes to convert a single
  36.    postscript file. Thus it is not efficient to do this conversion each
  37.    time SM/2 accesses the contents of the document.
  38.    
  39.    But it is already possible to use my AddOn DLL to index these files
  40.    via SM/2:
  41.    
  42.    Just convert each Postscript/Acrobat file to ascii using ps2text and
  43.    store them into files with the same name but different fileextension
  44.    (e.g. ".txt"). You can keep them in the same directory as the original
  45.    files, but don't forget to let SM/2 ignore those by setting
  46.    SM2_IGNORE_EXT to ".ps;.pdf"!
  47.    
  48.    It should be easy to write a script which creates the ascii file for
  49.    each Postscipt/Acrobat file, if it does not already exist. You should
  50.    run this script each time you start SM/2 to index new files.
  51.      _________________________________________________________________
  52.    
  53.    Q: Where can I get pstotext?
  54.    
  55.    A: Visit the [2]pstotext hompage for more information on this tool,
  56.    which also provides a link to the sourcecode.
  57.    
  58.    An OS/2 port of pstotext is part of the [3]GhostView package.
  59.      _________________________________________________________________
  60.    
  61.    $Author: siebert $
  62.    $Date: 1999/01/28 19:52:19 $
  63.    sm2addon@SteffenSiebert.de
  64.    
  65.  
  66. References
  67.  
  68.    1. http://hobbes.nmsu.edu/pub/os2/apps/internet/www/util/unh216.zip
  69.    2. http://www.research.digital.com/SRC/virtualpaper/pstotext.html
  70.    3. http://www.cs.wisc.edu/~ghost/
  71.