home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me2_099b.zip / ME2.DOC < prev    next >
Text File  |  1994-09-04  |  16KB  |  368 lines

  1.  
  2. ME/2 - A PM-Based Editor for OS/2
  3. Preliminary Documentation - 09/04/94
  4. ------------------------------------
  5. For "Quick Start" use with MR/2, see the end of this document.
  6.  
  7. Thanks for trying ME/2, a PM-based editor meant to be used in
  8. conjunction with either of my mail reader products, MR/2 and MR/2 PM.
  9. I think it's also quite handy as a general purpose editor, too.
  10.  
  11. This is a PM based editor using a Multiple Document Interface (MDI).
  12. That means you can have multiple documents open at one time, each in a
  13. sizeable window.  I have improved on this a bit by allowing an option
  14. where window sides are logically connected or "sashed".
  15.  
  16. Features
  17. --------
  18.  
  19. o       MDI Interface.  Toolbar, Status bar, dynamic menus.
  20. o       Many user-configurable options saved in an INI file and
  21.         remembered across sessions.
  22. o       Remembers last 4 documents edited.
  23. o       Integrated with MR/2's spelling checker and thesaurus.
  24. o       Many message-writing specific features are available.
  25. o       Controllable by MR/2 via "remote control" - appears
  26.         to be an "internal" editor while remaining a separate app.
  27.         Session switching is performed automatically.
  28. o       Enhanced tiling with "sashing" windows (adjacent windows
  29.         resize to stay adjacent to resized window).
  30. o       There's more!
  31.  
  32.  
  33. This is a preliminary release, although it works nicely and my list of
  34. planned enhancements is small (I've done almost everything I wanted to
  35. do).
  36.  
  37. It takes a while to load this thing (similar to loading E or EPM),
  38. mostly because of the loading of sizable DLL's.  Once I get the remote
  39. control logic working it will preload once (for MR/2 and MR/2 PM) and be
  40. callable almost instantly via remote control commands.  This will make
  41. it a practical choice for reply editing.
  42.  
  43. NOTE that the spelling checker and thesaurus are functional, but limitted
  44. to the amount of work they will perform without the existance of a valid
  45. MR2.ID file.  You get one of these by registering.
  46.  
  47. The accelerator key table is sumarized below.  Note that *some* of these
  48. keys interfere with the ALT+key processing of the main menu.  I'll fix
  49. this.
  50.  
  51.     Alt-Backspace,      UNDO
  52.     Shift-Delete,       CUT
  53.     Control-Insert,     COPY
  54.     Shift-Insert        PASTE
  55.  
  56.     Control-F           FIND TEXT
  57.     F3                  QUIT ***
  58.     Control-O           OPEN FILE
  59.     Control-S           SAVE FILE
  60.     Control-C           CLOSE FILE
  61.     Control-N           NEW FILE
  62.     Control-P           PRINT FILE
  63.     Alt-X               SAVE ALL and Exit ***
  64.     Control-V           VIEW FILE (Open for read-only)
  65.     Alt-W               WRITE BLOCK
  66.     Alt-R               READ BLOCK
  67.     Control-A           SELECT ALL
  68.  
  69.     Alt-C               FAST COPY
  70.     Alt-M               FAST MOVE
  71.     Alt-D               FAST DELETE
  72.  
  73.     Alt-N               NEXT FILE/WINDOW
  74.  
  75.     Alt-#               #=1 thru 9 jump to document #n.
  76.     Control-#           #=1 through 0 to insert a variable.
  77.  
  78. *** In remote control mode, these keys equate to save and close all,
  79.     followed by a "hide window", if ME/2 was started in a hidden state.
  80.     The application is not exited at this time.
  81.  
  82. The "fast" copy/move/delete functions work similar to the way they do
  83. in my text mode editors, only across windows.  ALT-C will copy whatever
  84. was left marked in the last window accessed, to the current cursor
  85. position.  No need to copy, then paste.  Ditto for Fast-mode, accept this
  86. is equivelant to a CUT, then PASTE.
  87.  
  88.  
  89. Required Files
  90. --------------
  91. There are three DLL's included totalling about 550K (sorry :( ).  These
  92. need to be placed into a directory listed in your LIBPATH *or* the ME/2
  93. directory needs to be added to your libpath.  It requires OPMBC20A.DLL,
  94. BSEBC20A.DLL and the Borland runtime DLL, C215MT.DLL.
  95.  
  96.  
  97. Command Line Parameters
  98. -----------------------
  99. How about an example:
  100.  
  101.         ME2 /R /F8 c:\mr2\Snips.txt /M /F0 c:\reply.msg
  102.  
  103. Loads ME/2, sets read-only mode with /R, sets the window font to font 8,
  104. opens snips.txt, sets modify file mode, resets the font to system
  105. proportional and opens c:\reply.msg for editing.  The files are "Tiled"
  106. by ME/2 when more than two are loaded on startup.
  107.  
  108. Specifically:
  109.  
  110.   /R            Sets READ ONLY mode on.  Any documents opened after this
  111.                 will be view-only.  The /M command can be used to turn
  112.                 modify mode back on.
  113.  
  114.   /M            Sets MODIFY mode on.  Any documents opened after this
  115.                 will be editable.  The /R command can be used to turn
  116.                 READ ONLY mode on, protecting a file from modifications.
  117.  
  118.   /-            Hide the editor.  Used for remote control purposes to
  119.                 keep it off the desktop when not in use.
  120.  
  121.   /+            Show the editor.  Used for remote control purposes to
  122.                 show it on the desktop when needed and in a hidden state.
  123.  
  124.   /P            Invokes ME/2 in remote control mode.
  125.  
  126.   /C0F          Sets the colors for subsequent new windows.
  127.                 First hex digit is the foreground color, second is the
  128.                 background.  Follows the ME/2 color dialog from left to
  129.                 right, then top to bottom (upper left corner is 0,
  130.                 lower right corner is F).
  131.  
  132.                     0 - White              8 - DarkGray
  133.                     1 - Black              9 - DarkBlue
  134.                     2 - Blue               A - DarkRed
  135.                     3 - Red                B - DarkPink
  136.                     4 - Pink               C - DarkGreen
  137.                     5 - Green              D - DarkCyan
  138.                     6 - Cyan               E - Brown
  139.                     7 - Yellow             F - PaleGray
  140.  
  141.  
  142.   /IC:\me2.ini  Sets the name of the INI file that ME/2 uses to store
  143.                 things like window positions, fonts, colors and
  144.                 setup/view options.  ME/2 looks first for this "forced"
  145.                 file name.  If not specified, ME/2 looks for the
  146.                 environment variables ME2DATA, then MR2DATA.  If it
  147.                 finds the first, or the later, then it access/creates
  148.                 its ME2.INI file there.  If none of this has yet resolved
  149.                 the INI path, ME/2 creates ME2.INI in the current
  150.                 directory.
  151.  
  152.   /T            Tiles documents in the default manner.  Used by the
  153.                 remote control process.
  154.  
  155.   /H            Tile horizontally, used by remote control ONLY.  You may
  156.                 specify a whole-number percentage to allocate to the
  157.                 "top" document (last one opened) by using /H75, for
  158.                 example.  Values must be between 20 and 80.
  159.  
  160.   /V            Tile vertically, used by remote control ONLY.  You may
  161.                 specify a whole-number percentage to allocate to the
  162.                 "top" document (last one opened) by using /V75, for
  163.                 example.  Values must be between 20 and 80.
  164.  
  165.   /Fn           Sets the current font for use with the NEXT document
  166.                 to be opened.  See list of available values below.
  167.  
  168.  
  169. Fonts
  170. -----
  171. While ME/2 supports user-selection from a standard OS/2 font selection
  172. dialog box, only certain combinations may be specified via parameter.
  173. For command line selection, the following numeric codes are available:
  174.  
  175.         0 - SystemProp,                   16 - HelvOLB,
  176.         1 - Courier8,                     17 - HelvOLBI,
  177.         2 - Courier10,                    18 - TmsRmn8,
  178.         3 - Courier12,                    19 - TmsRmn10,
  179.         4 - CourierOL,                    20 - TmsRmn12,
  180.         5 - CourierOLI,                   21 - TmsRmn14,
  181.         6 - CourierOLB,                   22 - TmsRmn18,
  182.         7 - CourierOLBI,                  23 - TmsRmn24,
  183.         8 - Helv8,                        24 - TmsRmnOL,
  184.         9 - Helv10,                       25 - TmsRmnOLI,
  185.         10 - Helv12,                      26 - TmsRmnOLB,
  186.         11 - Helv14,                      27 - TmsRmnOLBI,
  187.         12 - Helv18,                      28 - SysMono10,
  188.         13 - Helv24,                      29 - SysMono12,
  189.         14 - HelvOL,                      30 - SymbolOL
  190.         15 - HelvOLI,
  191.  
  192.  
  193. Known Problems
  194. --------------
  195.  
  196. o       Rewrapping and quoting options need work.  Paste-quote, too.
  197.  
  198. o       My ALT-# remapping interferes with QuikSwitch.
  199.  
  200. o       No way to interrupt a thesaurus "search for word" process.
  201.         Perhaps later.
  202.  
  203. o       Spelling checker only updates the window after an entire line is
  204.         checked.  Even then, there's a bug that hides a modified line.
  205.         It's there, and it comes back as soon as the window gets
  206.         control.  This is merely a cosmetic.
  207.  
  208. o       Sashing windows don't work correctly if you slide one window border
  209.         over a second window completely, past the frame of a third. Don't
  210.         do this :)  Also, since byte-aligment is on by default, minor
  211.         gaps or overlaps might occur.  I'll keep fine tuning.
  212.  
  213. o       Max all, Min all do strange things to the subsequent use of the
  214.         individual window min/max buttons.
  215.  
  216. o       Tab processing needs to be reviewed.  Tabs In, Tabs Out and
  217.         Tab Pressed.
  218.  
  219. o       The Bottom scrollbars option takes effect ONLY when the
  220.         next window is opened.  I tried dynamically changing all the
  221.         existing windows, but it failed.
  222.  
  223. o       No Help.  Some buttons and/or menu items greyed out (for
  224.         example, the append-with-section dialog has no code yet;
  225.         it's still just an idea :).
  226.  
  227. o       The INSERT menu will include remote-control specified entries.
  228.         This, of course, is not yet working.
  229.  
  230. o       Insert SYMBOL.  The chart is neat, but due to differences in the
  231.         font displayed in the dialog and that of the document, you don't
  232.         always get what you pick :)
  233.  
  234. o       No way yet to replace the "next" occurence of a string after the
  235.         first hit is found.
  236.  
  237. o       I can't seem to trap the F10 key and make it work like both
  238.         of the MR/2 internal editors (F10 means save and exit).
  239.  
  240. Ideas
  241. -----
  242.  
  243. o       Auto Saving on time interval.
  244. o       Quote ratio in status window.
  245. o       PGP integration.
  246.  
  247.  
  248. Using with MR/2's Spell Checker and/or Thesausus Databases
  249. ----------------------------------------------------------
  250. Yes, you can use those large word databases that you download for use
  251. with MR/2's internal editor.  In fact, you can use the same copies.
  252. Here's how ME/2 tries to find the file(s) needed:
  253.  
  254. 1.      Looks for an environment variable called ME2DATA or MR2DATA
  255.         (either will work).  You may use one of these to set the
  256.         path for the two data files (e.g., "SET MR2DATA=C:\MR2" in
  257.         your config.sys)
  258.  
  259. 2.      ME/2 looks in the directory where ME2.EXE resides.
  260.  
  261. 3.      The current directory is checked.
  262.  
  263. 4.      The parent directory is checked (e.g., "..\mr2thsrs.bin").
  264.  
  265. If the needed file is not found after all these checks, ME/2 merely
  266. beeps at you, then ignores you :)
  267.  
  268. NOTE that this same procedure is used to locate your MR2.ID file, if
  269. you have one.  If a valid MR2.ID file is found, the spelling checker
  270. and thesaurus become fully functional.  Otherwise:
  271.  
  272. o       The spelling checker will only hcek 50 words at a time.
  273. o       The thesaurus can be activated only once per session.
  274. o       The thesaurus will only allow a word search 3 levels deep.
  275.  
  276.  
  277. REGISTRATION
  278. ------------
  279. Here's how this works.  ME/2, the editor, was developed as an add-on
  280. utility for my set of MR/2 QWK compatible mail readers (MR/2 "classic"
  281. text-mode and MR/2 PM).  As the editor became more polished, I realized
  282. that it showed usefullness as a general purpose editor.
  283.  
  284. Registered users of MR/2 and/or MR/2 PM are already registered for ME/2.
  285. Anyone registering either of these mail readers in the future will also
  286. be automatically registered for ME/2.  In fact, the $25 registration fee
  287. covers MR/2, MR/2 PM and ME/2.
  288.  
  289. NOTE THAT ME/2 is a slightly crippled in a non-registered state. The
  290. Spelling checker will check only 50 words per invocation, however, you
  291. are free to check an entire document.  You simply mark and bound 50
  292. words at a time :).  The thesaurus is also crippled in that you can use
  293. it only once per session, and it will only traverse a word list to three
  294. levels.  If ME/2 sees a valid MR2.ID in its directory or one pointed to
  295. by the environment variables MR2DATA or ME2DATA, it will allow full
  296. access to the spelling checker and thesaurus.
  297.  
  298. So, if you care to use just ME/2, it still costs you $25.  You will
  299. receive MR/2, MR/2 PM and the supporting spelling and thesaurus
  300. databases.  You will also received an MR2.ID file and the latest ME/2.
  301.  
  302. IF REQUESTED ENOUGH, I MAY OFFER A ME/2-ONLY REGISTRATION DEAL.
  303. Let me know if this appeals to you.
  304.  
  305. I may offer an API in some way ... telling other programmers how to use
  306. ME/2 in remote control mode.  We'll see if folks think it's a decent
  307. editor, first.  Just to plant the bug in your ear, this *is* possible,
  308. so it you like ME/2 but not MR/2 or MR/2 PM ... integration with your
  309. reader-of-choice *could* be possible :)
  310.  
  311.  
  312. ME/2 Quick Start - Using it NOW with MR/2 and MR/2 PM
  313. -----------------------------------------------------
  314.  
  315. 1.      Set an environment variable in config.sys to point to your
  316.         MR/2 directory,  MR2DATA=C:\MR2 (or whatever is correct for
  317.         your system).  Reboot yoru system.  Alternatively, you may
  318.         set this value by hand, or via a CMD file, when needed.
  319.  
  320.         NOTE:  This is to provide access to MR/2's thesaurus and
  321.         spelling checker word databases.  It also identifies a
  322.         directory in which to place the ME2.INI settings files.
  323.  
  324. 2.      Unzip ME2 into a directory.  C:\me2, for example.
  325.  
  326. 3.      Modify your MR2.INI's "Editor=" entry.  For example:
  327.  
  328.         Editor=C:\me2\me2
  329.  
  330.         NOTE:  MR/2 looks for "ME2" anywhere inside the editor string
  331.         and sets up remote control operation.  This may interfere with
  332.         other editor setups.  I'll find a better way quickly.
  333.  
  334. 4.      DO NOT CLOSE THE EDITOR after replying.  Use ALT-X to save and
  335.         exit all files.  F3 also works, but ALT-F4 or clicking on the
  336.         close icon will not.
  337.  
  338. Some helpful, more advanced hints:
  339.  
  340. *       A more complex editor setup might look something like this:
  341.  
  342.         SourceFile=C:\source.msg
  343.         Editor=C:\me2\me2 /C02 /F18 /R c:\source.msg /M /C01 /F0 %s /H75
  344.  
  345.         This opens the quoted source message in one window, read-only,
  346.         using an 8 point font and white-on-blue text.  It then opens
  347.         the reply file in modify mode, uses the default system font, and
  348.         sets the color to white-on-black.  The screen is then tiled
  349.         horizontally, with the reply taking up 75% of the window.
  350.         Unfortunately, there's a bug that keeps the other file from
  351.         auto-adjusting.  It's there, visible, and accessable, tho.
  352.  
  353.         SourceFile is a new INI setting.  Quoted text is placed here, the
  354.         reply file starts as defined by your templates, with no quoted
  355.         text.
  356.  
  357. o       Also, you may pre-load ME/2 before MR/2 does to obtain more control
  358.         over its initial settings.  For example, MR/2 starts ME/2 in hidden
  359.         mode and hides it after finishing a reply.  You might setup a
  360.         command file for MR/2 that will change this behaviour like so:
  361.  
  362.                 Start /b ME2.EXE /I:C:\ME2.INI /P
  363.                 mr2
  364.  
  365.         This will cause ME/2 to always remain displayed on the desktop.
  366.         You would still use ALT-X or F3 to save your documents.
  367.  
  368.