THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700


S U M M A R Y


DIARY: December 5, 1998 07:54 AM Saturday; Rod Welch

Improve changing editor file to HTML for formal correspondence.

1...Summary/Objective
2...Test Cases
3...01220 Format for Formal Correspondence Format
4...0122 Subjects and Re
5...0122 Sincerely and VTY for Complimentary Close and Sig Block
6...0122 Para Commands


..............
Click here to comment!

CONTACTS 

SUBJECTS
Save to HTML Directory for Web Site
Editor, F02
Convert Documents, 0122

0605 -    ..
0606 - Summary/Objective
0607 -
060701 - Follow up ref SDS 13 0000, ref SDS 12 0000.
060702 -
060703 -
060704 -
060705 -
060706 -
060707 -
0608 -
0609 -
0610 - Problem
0611 -
061101 - We are having a problem converting a letter, ref DRP 1, in the record
061102 - on 960522, which is at ref SDS 2.
061103 -
061104 -    1.  Letter used "Very truly...," instead of "Sincerely," which
061105 -        resulted in omitting the code that enters para commands.
061106 -
061107 -        Fixed it at ref SDS 0 2898
061108 -
061109 -    2.  If there is an ordered list above a pre command, but processing
061110 -        the ordered list above it, pushes the code below the pre
061111 -        command, then the ordered list was not processed.
061112 -
061113 -        Fixed this at ref SDS 0 3472.
061114 -
061115 -    3.  Decided to create a loop for Subjets and Sincerely.
061116 -
061117 -    4.  Applied para routine for P command to all files.
061118 -
061119 -
061120 -
061121 -
061122 -  ..
061123 - Test Cases
061124 -
061125 - We have it working okay on this problem file, but need to test on
061126 - complicated documents.
061127 -
061128 -    1.  USACE Comm Metrics report, 970238. ref DRP 2 0000
061129 -
061130 -    2.  USACE Comm Metrics report, 971007. ref DRP 3 0000
061131 -
061132 -    3.  POIMS paper. ref OF 3 0000
061133 -
061134 -    4.  NWO paper. ref OF 4 0000
061135 -
061136 -    5.  Welch letter format. ref DIP 1 0000
061137 -
061138 -
061139 -
061140 -
0612 -

SUBJECTS
Ordered Lists
References

0805 - Progress
0806 -
080601 -  ..
080602 - 01220  Format for Formal Correspondence Format
080603 -
080604 - Follow up ref SDS 13 1844, ref SDS 12 7616.
080605 -
080606 - Line 300, ref OF 1 1392, -label keepit, about 10 lines below, is where
080607 - the code is entered for a pre command.
080608 -
080609 - Line 350, ref OF 1 5842, -label keepit, about 40 lines below, is where
080610 - pre and /pre are investigated to avoid entering an ordered list code
080611 - of any kind.
080612 -
080613 - Line 370, ref OF 1 3200, -label lfbtc, Order List commands for outline
080614 - structure begins here.
080615 -
080616 -      [On 990410 changed this code. ref SDS 14 2587]
080617 -
080618 -
080619 -  ..
080620 -
080621 - Line 410, ref OF 1 8360, -label preCK, added subroutine to evaluate
080622 - for each potential outline level, whether it is between a pre and
080623 - /pre command, in which case the ordered list operation is not run,
080624 - because the pre command controls.
080625 -
080626 - Line 550, ref OF 1 6210, -label ulok, want to avoid entering double
080627 - spaces, if not needed for outline code.
080628 -
080629 -      [On 990410 changed this code. ref SDS 14 0758]
080630 -
080631 - Line 770, ref OF 1 7938, -label OOLx, this is for the special
080632 - condition where /DIR is entered to deepen the indentation for
080633 - References.
080634 -
080635 - Line 820, ref OF 1 3432, -label etol, this code ends the ordered list
080636 - routine for References.
080637 -
080638 -
080639 -
080640 -
0807 -

SUBJECTS
Subjects, Re
Dear ---:

100401 -  ..
100402 - 0122  Subjects and Re
100403 -
100404 - Line 930, ref OF 1 2296, -label ndLn, "Subject" is tested here.
100405 -
100406 -    If there is a subject, then we should try to turn off pre command
100407 -    in the document, because it is a formal correspondence.
100408 -
100409 - If a subject is found, then 137 999 is set.
100410 -
100411 - It has following elements....
100412 -
100413 -        Subjects
100414 -
100415 -        SUBJECTS
100416 -
100417 -        Re
100418 -
100419 -        RE
100420 -
100421 -
100422 - Line 990, ref OF 1 3192, -label Subjex, look for "Ref" again.
100423 -
100424 - Line 930, ref OF 1 2296, -label ndLn, added code here to look for
100425 - "Re:" and "RE:" which are used in documents issued by lawyers.
100426 -
100427 -     Also need to look for "RE:"
100428 -
100429 -  ..
100430 -
100431 - Line 1120, ref OF 1 2422, -label noPRE, this is where "Dear" is
100432 - evaluated.  If Dear is there, it is assumed this is a formal
100433 - correspondence and so pre is turned off, with /pre.
100434 -
100435 -     Made this a loop so there can be multiple letters in a file.  The
100436 -     loop begins after Sincerely is processed below. ref SDS 0 4140
100437 -
100438 -     Decided to eliminate "Dear" and a processed element, and make
100439 -     "Subjects" the place where the /pre is entered, because we are
100440 -     changing the format of Ref to day, so it works as...
100441 -
100442 -              References:
100443 -
100444 -                  a.
100445 -
100446 - This requrires that /pre and the font commands be entered above Dear.
100447 - Also, there may not be a dear in some documents, such as memos.
100448 -
100449 -
100450 -
1005 -

SUBJECTS
Sincerely, VTY

1104 -
110401 -  ..
110402 - 0122  Sincerely and VTY for Complimentary Close and Sig Block
110403 -
110404 - Line 1140, ref OF 1 1048, -label lpAq, this is where "Sincerely" is
110405 - evaluated for close of a letter.
110406 -
110407 -
110408 - Added code for "Very truly yours" as an alternate complimentary
110409 - close.
110410 -
110411 - This routine for processing a complimentary close of a letter. checks
110412 - each line, and enters spaces to the end of the file.  This needs extra
110413 - spaces for a signature block, so every space to the end of the file
110414 - gets a br command.
110415 -
110416 -  ..
110417 -
110418 - Changed the code today, so if there is a Sincerely or VTY, then if the
110419 - routine encounters an HTML command < it will look to see if there is
110420 - another letter in the file, by processing the code at -label dearA,
110421 - per above. ref SDS 0 3068
110422 -
110423 -
110424 -
110425 -
1105 -

SUBJECTS
Para <P> Commands

1204 -
120401 -  ..
120402 - 0122   Para Commands
120403 -
120404 - Line 1180, ref OF 1 2612, -label bodyTX, this is the code that enters
120405 - a para command to separate paragraphs, when a pre command is not
120406 - active.
120407 -
120408 - Previously, if "Sincerely" was not found, the para separation routine
120409 - would be skipped.  I changed this today, so that para separation will
120410 - always be run.
120411 -
120412 - Changed para routine so if there is already a para symbol a second
120413 - command, which is redundant, but probably does not hurt anything, will
120414 - be entered.  Multiple para commands seem to be ignored.  To get
120415 - multiple spaces need combination para and br command.
120416 -
120417 -
120418 -
120419 -
120420 -