THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700
rodwelch@pacbell.net


S U M M A R Y


DIARY: March 7, 2006 10:05 PM Tuesday; Rod Welch

SDS replicate apply to Search and Change for single key data entry.

1...Summary/Objective
2...Replication Applied to Search Operations F1 F4 and Shift F4
3...Replicate Content into SDS Record to Current Left Margin
4...Replicate Content from SDS into Editor and Remove Line Number Field
5...02801 Remove SDS Line Number Field Replicate Text Editor Left Margin
6...Shift Text Replicated in Editor to Left Margin Remove SDS Line Numbers
7...Line Numbers SDS Remove Shift Text Replicated in Editor to Left Margin


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

CONTACTS 

SUBJECTS
Replication F3 Enter Specification into Search Change Utility Opend
Replicate Text Left Margin in SDS Records F3 Integrates Commands for

0504 -
0504 -    ..
0505 - Summary/Objective
0506 -
050601 - Follow up ref SDS 1 0000.
050602 -
050603 - Added F3 replication feature to search and change utility, and added
050604 - automatic formatting of replication in editor files by removing SDS
050605 - line numbers, and SDS records by adding line numbers, and also by
050606 - positioning narrative to the curent left margin based on situational
050607 - awareness of outline structure.  Basic scheme is described,
050608 - ref SDS 0 AU7M, and scope of replicating narrative between SDS records
050609 - and the editor is presented. ref SDS 0 907M
050610 -
050611 -    [On 060412 outline software represents two (2) worlds of creating
050612 -    good ideas, essential for production; and wordprocessing for making
050613 -    ideas look good, essential for sales. ref SDS 2 3H5G
050614 -
050615 -
050616 -
050617 -
050618 -
050620 -  ..
0507 -
0508 -
0509 - Progress
0510 -
051001 - Replicate has proven very useful for transferring specifications and
051002 - general narrative content.  Work today automatically determines the
051003 - left margin, and positions replicated text, rather than require the
051004 - user to spend time making adjustments to conform replicated text to
051005 - local requirements.  This only saves a little time and thought, but
051006 - repeated many times in a day, savings are significant for time, and
051007 - for reducing stress from the burden of cognitive overhead, as
051008 - previously explained on 050416. ref SDS 1 5I7M
051010 -  ..
051011 - Basic scheme...
051012 -
051013 -    F3 captures and enters text based on situational awareness.
051014 -
051015 -        This complemnts F3 for capturing and entering subject accounts
051016 -        in SDS record control fields, and capturing headline and
051017 -        entering in the Subject Index for account descriptions that
051018 -        define the organic structure of context.
051020 -     ..
051021 -    F3 is assigned to macro file 007003 in macro 96 as a subsidiary
051022 -    function to the SDS diary summary for capturing and entering
051023 -    replication content, and macro 02801 called by 007003 perform
051024 -    outline indentation.
051026 -     ..
051027 -    Since F3 calls the diary summary, in SDS records replication occurs
051028 -    when F3 is used in the line number field.  Since F3 does not call
051029 -    a diary summary in an editor file, it executes replication used
051030 -    anywhere in an editor file.
051032 -     ..
051033 -    F3 on a line with text will capture the line and any consecutive
051034 -    lines until a blank line is encountered.
051036 -     ..
051037 -    F3 on a blank line will attempt to replicate content captured in
051038 -    the prior step, according to the following scope...
051039 -
051041 -  ..
051042 - Scope of replication between SDS records and editor files...
051043 -
051044 -    1.  Editor files
051045 -
051046 -        a.  Replicated content entered on left margin of text above.
051047 -
051048 -        b.  Content from SDS records entered with line number format
051049 -            removed.
051051 -             ..
051052 -        c.  Content from both other editor files, and from SDS records
051053 -            is positioned to the left margin of the next paragraph
051054 -            above.
051056 -             ..
051057 -        d.  Replicated text in editor files is not justified.
051059 -         ..
051060 -    2.  SDS records
051061 -
051062 -        a.  Content from editor files is configured with SDS standard
051063 -            line number format added for "Knowledge Space."
051064 -
051065 -        b.  SDS references embedded in replicated narrative text,
051066 -            including forward links are carried from other records and
051067 -            rendered active in the target record,
051069 -             ..
051070 -        c.  Narrrative text left margin...
051071 -
051072 -            1.  Content from both editor files, and SDS records is
051073 -                positioned to the left margin of the next paragraph
051074 -                above.
051075 -
051076 -            2.  Replicated text is not justified.
051078 -                 ..
051079 -            3.  If the next paragraph above is a forward link, then the
051080 -                program looks for the next standard narrative paragraph
051081 -                and positions the new replicated text on the left
051082 -                margin, unless replicating another forward link.
051084 -             ..
051085 -        d.  Forward links...
051086 -
051087 -            1.  Indented 3 columns from the next standard narrative
051088 -                paragraph above, unless...
051089 -
051090 -            2.  Forward link already entered above a replicated forward
051091 -                link, then in that case the left margin of the existing
051092 -                forward link is used to position the new forward link.
051094 -                 ..
051095 -            3.  Forward link is not already entered above the new
051096 -                replicated forward link, then, if there is a forward
051097 -                link below, the left margin of the existing forward
051098 -                link is usd to position the new forward link.
051100 -                 ..
051101 -            4.  Text of forward links are justified.
051103 -         ..
051104 -    3.  Search macro
051105 -
051106 -        F3 in search macro enters replicated text into the search
051107 -        command and configures for immediate execution.
051109 -         ..
051110 -        If there is already a search argument entered, F3 op will
051111 -        replace it with the new replicated search string.
051112 -
051113 -
051115 -  ..
051116 - Replication Applied to Search Operations F1 F4 and Shift F4
051117 -
051118 - The change extends these advantages by applying replication to the
051119 - search and change utility.
051121 -  ..
051122 - The user can then capture a string with F3, open search and change (F1
051123 - F4) and press F3 to enter the specification.
051125 -  ..
051126 - Not every specification is amenable to this efficiency.  Some are ad
051127 - hoc; however, a significant portion of searches look for characters
051128 - immediately at hand in an open file, and the desire is to find them in
051129 - another file.  The example that led to creating this feature was
051130 - compressing macro file development files with c: sd 03 011, using F1
051131 - Tab.  When an error occurs, because of an extraneous label, it is now
051132 - very fast to press F3, open Search and Change with F1 F4, press F3 and
051133 - then Enter to find the problem.
051135 -  ..
051136 - This further reduces using cut and paste, althouh many instances will
051137 - continue to require more expansive capbility of cut and paste.
051139 -  ..
051140 - Line 1360, ref OF 1 UD6I, -label 478srf in 007003
051141 -
051142 -    -label 478srf
051143 -    loc_cur 4 1
051144 -    chrcnt 1 0
051145 -    -if @1 != 156 -goto nslnf4................. ref SDS 0 LA3W
051146 -    loc_cur 0 8
051147 -    aw
051148 -    split
051149 -    immed d
051150 -
051151 -        Added code to test for new feature that identifies when an SDS
051152 -        line number is replicated, based on finding char 156, and in
051153 -        that case, this is sheared off since it makes every line
051154 -        unique, and the purpose of a search op is to find multiple
051155 -        instances of a string.
051156 -
051158 -  ..
051159 - Line 1360, ref OF 1 XF7G, -label nslnf4 in 007003
051160 -
051161 -    -label nslnf4
051162 -    loc_cur 3 1
051163 -    ic 108
051164 -    ic 48
051165 -    chrcnt 1 0
051166 -    split
051167 -    rel_cur 1 0
051168 -    immed d
051169 -    rel_cur -1 0
051170 -    join
051171 -    rel_cur 0 -1
051172 -    ic 32
051173 -    ic @1
051174 -    eol
051175 -    ic @1
051176 -    -label 471end
051177 -    macro 19
051178 -    -goto en2d
051179 -
051180 -        This is the main code added based on profile level 47 8,
051181 -        ref OF 1 S64O  The code recognizes when search and change is
051182 -        active and adjusts the way content is entered to fit the
051183 -        format.
051184 -
051185 -
051186 -
051187 -
0512 -

SUBJECTS
Default Null Subject Account for Blank Record

0603 -
060401 -  ..
060402 - Replicate Content into SDS Record to Current Left Margin
060403 -
060404 - Line 1310, ref OF 1 WF6F, -label cnfltm in 007003
060405 -
060406 -    -label cnfltm
060407 -    setcur 3 0
060408 -    -if @141 = 1 addcnt 3 1
060409 -    macro 19
060410 -    loc_cur 0 @3
060411 -    setcnt 119 8932
060412 -    @c:\sd\03\02801
060413 -    setcnt 119 0
060414 -    -goto caop
060415 -
060416 -        Calls 02801 to shift text to left margin, but only for forward
060417 -        links in SDS records.
060419 -         ..
060420 -        Want this to work for for everything in SDS records, and for
060421 -        forward links, the shift is an additional 3 columns indented
060422 -        for outline structure.
060423 -
060424 -
060425 -
060426 -
060427 -
0605 -

SUBJECTS
Replicate F3 Enter Content from SDS into Editor Remove Line Number F

0703 -
070401 -  ..
070402 - Replicate Content from SDS into Editor and Remove Line Number Field
070403 -
070404 - Line 550, ref OF 1 EZ6F, -label dnag in 007003
070405 -
070406 -    -label dnag
070407 -    setcnt 0 0
070408 -    setlen 1 0
070409 -    -if @1 > 10 -goto lpdwN
070410 -    tl 0
070411 -    immed dd
070412 -    top
070413 -    immed dd
070414 -    ic 156
070415 -    -label lpuP
070416 -
070417 -        Added ic 156 to enter a flag that identifies when content from
070418 -        an SDS record is transferred into an editor file.
070419 -
070420 -
070422 -  ..
070423 - Line 850, ref OF 1 977J, -label enp in 007003
070424 -
070425 -    -label enp
070426 -    g stufqc2
070427 -    -if @47 = 8 -goto 478srf
070428 -    immed d
070429 -    -if @47 = 2 -goto 472nd
070430 -    setcnt 119 8933
070431 -    @c:\sd\03\02801 #2
070432 -    setcnt 119 0
070433 -    -goto 471end
070434 -
070435 -        Modified to process SDS content entered in editor file by
070436 -        reading flag created in line number field, which signifies the
070437 -        field must be removed.  This can be accomplished in 02801.
070438 -
070439 -
070441 -  ..
070442 - Line 1240, ref OF 1 WF6F, -label upfrl in 007003
070443 -
070444 -    macro 19
070445 -    setcnt 119 8932
070446 -    @c:\sd\03\02801 #2
070447 -    setcnt 119 0
070448 -    macro 19
070449 -    macro 49
070450 -
070451 -
070452 -
070453 -
0705 -

SUBJECTS
Default Null Subject Account for Blank Record

0803 -
080401 -  ..
080402 - 02801  Remove SDS Line Number Field Replicate Text Editor Left Margin
080403 - Shift Text Replicated in Editor to Left Margin Remove SDS Line Numbers
080404 - Line Numbers SDS Remove Shift Text Replicated in Editor to Left Margin
080405 -
080406 - This code calculates left margin and shifts replicated content from
080407 - another file to the current left margin.
080409 -  ..
080410 - Line 70, ref OF 2 KB8J -label lpflmd in 02801
080411 -
080412 -    -if @119 < 8932 -goto ucplm
080413 -    macro 22
080414 -    setcnt 2 0
080415 -    -label lpflmd
080416 -    down
080417 -    addcnt 2 1
080418 -    -if @2 > 2 -goto clmn3
080419 -    setlen 1 0
080420 -    -if @47 = 1 -if @1 = 0 -goto lpflmd
080421 -    -if @47 = 2 -if @1 < 10 -goto lpflmd
080422 -
080423 -        Added this code to scroll the file down and find the current
080424 -        left margin for entering text into an Editor file; looks like
080425 -        it should also work for SDS.  Uses counter 119 set in 007003,
080426 -        per above. ref SDS 0 917N
080427 -
080428 -
080429 -
080430 -
080431 -
080432 -
080433 -
080434 -
080435 -
080436 -
080437 -
080438 -
0805 -