Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] Re: Alternate to keyboard 4 copy ("cut") / paste new

Expand Messages
  • Jeff Scism
    OK here is the clip code in it s entirety: 000-Montgo-Biotemplate ^!Set %IDX%=^$GetDocIndex$ ^!SetDocIndex IndexValue=1 ^!SetClipboard ^$GetSelection$ ...
    Message 1 of 10 , Feb 10, 2007
      OK here is the clip code in it's entirety:

      000-Montgo-Biotemplate

      ^!Set %IDX%=^$GetDocIndex$
      ^!SetDocIndex IndexValue=1


      ^!SetClipboard ^$GetSelection$
      : uncomment the next line to cut not copy
      ^!Replace "^$GetSelection$" >> "^%EMPTY%" ISH
      ; either of the next 2 lines works here
      ; ^!Toolbar "paste new"
      ^!Menu "edit/new"
      ^!Insert HTML

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">

      <html>
      <head>
      <title>USGenWeb Project- Montgomery County Indiana</title>
      <meta name="description" content=
      "This is a central referral point for Genealogy research in Montgomery
      County, Indiana">
      <meta name="keywords" content=
      "Family, History, Genealogy, Search, *.ged, *.ftm, Immigrant, link,
      Montgomery County, records, Rootsweb, roots, geneology,
      inmontgo-L@..., USGenWeb, Indiana">
      <meta http-equiv="Content-Type" content=
      "text/html; charset=us-ascii">
      <style type="text/css">
      body {
      background-color: ;
      color: #000000;
      }
      :link { color: #0000FF }
      :visited { color: #800080 }
      :active { color: #FF0000 }
      </style>
      <style type="text/css">
      body {
      background-image: url(../../img/background.jpg);
      background-color: ;
      color: #000000;
      }
      :link { color: #0000FF }
      :visited { color: #800080 }
      :active { color: #FF0000 }
      </style>
      </head>


      <body>
      <P>Citation: The Indiana GenWeb Project, Copyright ©1997-2006, <A
      HREF="../../main.html">Montgomery County Website</A>
      http://www.rootsweb.com/~inmontgo/</P>
      <DIV align="center"><IMG SRC="../../img/montgomery.gif" WIDTH="450"
      HEIGHT="44" BORDER="0" ALT="">
      <H3>Montgomery County, Indiana USGenWeb Project</H3><HR>
      </DIV>



      <div>
      <table border="0" width="90%" bgcolor="">
      <BR><H3>BIOGRAPHY</H3><P>

      <H2>

      </H2>



      ^&

      </P>

      <P><CENTER> File Created: ^$GetDate(yyyy-mmm-dd)$^%nl%

      </table>
      </P>
      <P>
      Return to higher level <A HREF="../index.html">Index Page.</A>

      <BR> Return <A HREF="../../main.html">Main Page.</A><BR> </CENTER></P>

      <BR><P>
      <CENTER><BR><BR>© Copyright USGenWeb Project for Montgomery County,
      Indiana, Karen Zach.<BR>

      </P><P>

      Last Modified on ©<i><b><!--#echo var="LAST_MODIFIED"--></b></i><br>

      <font size=2><BR><BR>©2006 HTML compiled by:<A
      HREF="mailto:Scismgenie@..."<B>Blacksheep
      Genealogy</B></A><BR></TABLE>

      </BODY>

      </HTML>
      ^!Find "<H3>BIOGRAPHY</H3>" BI
      ^!SetDocIndex ^%IDX%
    • acummingsus
      ... Announcing a new file has been uploaded to the files area. http://tech.groups.yahoo.com/group/ntb-clips/files/Alan_C/ see readme.txt particularly
      Message 2 of 10 , Feb 10, 2007
        --- In ntb-clips@yahoogroups.com, Jeff Scism <Scismgenie@...> wrote:
        >
        > OK here is the clip code in it's entirety:
        <snipped>

        Announcing a new file has been uploaded to the files area.

        http://tech.groups.yahoo.com/group/ntb-clips/files/Alan_C/

        see readme.txt particularly at bottom of readme is about HtmGeneol.clb

        HtmGeneol_clb.zip

        contains HtmGeneol.clb

        Jeff, I snipped all specific info from the html markup except for
        generalities.

        It's a working demo, tested, works fine here on Win 2K.

        It's how I prefer to do or grew accustomed to doing this sort of thing
        (other ways to do it I'm sure exist).

        I prefer this method because it proved itself reliable to me in the
        past and it also separates the clip code from the html markup, in my
        estimation, making it easier to edit either and/or also it's easier to
        add a htm_markup2 and call it (can have multiple different
        html_markups and simply call whichever one you want).

        The called clip named htm_markup dumps the actual htm content into cur
        doc (which is an .htm that got generated by htm_geneol.tpl)

        <importantly>

        ~~insertion_here~~

        That text (is like a tag or a marker for ^!Find) now replaces your
        former ^&

        and it's currently (along with all htm) now in the htm_markup clip
        </importantly>
        ----

        ; look on edit menu there is no edit/new
        ; I had "edit/paste new"
        ; ^!Menu "edit/new"
        ; "file/new" if U had wanted a new text file
        ; IOW whatever U use must be an actual or existing menu item

        --
        Alan.
      • Jeff Scism
        Thanks Alan, My problem is my mind doesn t grasp REGex (yet) and I have no Perl experience. (The last real programming I did was in 1972 in Cobol and Fortran,
        Message 3 of 10 , Feb 10, 2007
          Thanks Alan, My problem is my mind doesn't grasp REGex (yet) and I have
          no Perl experience. (The last real programming I did was in 1972 in
          Cobol and Fortran, a very distant memory. Remember punch cards?)

          I still don't grasp the mechanics, but I see how this one is working.
          (and Yes it is working, (I have to redo the HTML markup...))

          My previous logic was to construct the code like I manually 'used to'
          process the snippets, essentially automating the process from a flow
          chart.

          If a person has a base of "assumed" knowledge this could be intuitive,
          but without that base, it is greek.





          acummingsus wrote:
          >
          > --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>,
          > Jeff Scism <Scismgenie@...> wrote:
          > >
          > > OK here is the clip code in it's entirety:
          > <snipped>
          >
          > Announcing a new file has been uploaded to the files area.
          >
          > http://tech.groups.yahoo.com/group/ntb-clips/files/Alan_C/
          > <http://tech.groups.yahoo.com/group/ntb-clips/files/Alan_C/>
          >
          > see readme.txt particularly at bottom of readme is about HtmGeneol.clb
          >
          > HtmGeneol_clb.zip
          >
          > contains HtmGeneol.clb
          >
          > Jeff, I snipped all specific info from the html markup except for
          > generalities.
          >
          > It's a working demo, tested, works fine here on Win 2K.
          >
          > It's how I prefer to do or grew accustomed to doing this sort of thing
          > (other ways to do it I'm sure exist).
          >
          > I prefer this method because it proved itself reliable to me in the
          > past and it also separates the clip code from the html markup, in my
          > estimation, making it easier to edit either and/or also it's easier to
          > add a htm_markup2 and call it (can have multiple different
          > html_markups and simply call whichever one you want).
          >
          > The called clip named htm_markup dumps the actual htm content into cur
          > doc (which is an .htm that got generated by htm_geneol.tpl)
          >
          > <importantly>
          >
          > ~~insertion_here~~
          >
          > That text (is like a tag or a marker for ^!Find) now replaces your
          > former ^&
          >
          > and it's currently (along with all htm) now in the htm_markup clip
          > </importantly>
          > ----
          >
          > ; look on edit menu there is no edit/new
          > ; I had "edit/paste new"
          > ; ^!Menu "edit/new"
          > ; "file/new" if U had wanted a new text file
          > ; IOW whatever U use must be an actual or existing menu item
          >
          > --
          > Alan.
          >
          >
        • acummingsus
          ... have ... Well, yes, those other (unneeded) clips can be deleted. Just the 4 clips at bottom are relevant (these 4 have no Perl and have no regex) -- could
          Message 4 of 10 , Feb 10, 2007
            --- In ntb-clips@yahoogroups.com, Jeff Scism <Scismgenie@...> wrote:
            > Thanks Alan, My problem is my mind doesn't grasp REGex (yet) and I
            have
            > no Perl experience.

            Well, yes, those other (unneeded) clips can be deleted. Just the 4
            clips at bottom are relevant (these 4 have no Perl and have no regex)
            -- could copy them and put them into wherever other library if desired.

            (The last real programming I did was in 1972 in
            > Cobol and Fortran, a very distant memory. Remember punch cards?)

            I'm familiar with what they are.

            > I still don't grasp the mechanics, but I see how this one is working.

            I don't savvy the difference there. I think if I see how is working
            is equal to the mechanics of what makes it tick.

            > (and Yes it is working, (I have to redo the HTML markup...))

            some of the markup got it from Yahoo Groups and I snipped some too.

            don't forget about ~~insert_here~~

            (after cursor jumps to top of doc) (^!Jump DOC_START) also there is an
            order to the ^!Find commands near the bottom of the main clip -- this
            order is coordinated to/with the order of things to find in the html
            from the top of doc down to the bottom of the html doc

            Well, it works on Vista!

            I know I took a risk (it's up to you whether you use it or not) when I
            built it like that. But this method worked for me rock solidly in the
            past. And I found it convenient as in can have 3 or 4 different (for
            differing styles/formats/layouts of web pages) html_markup "called
            clips" (^!Clip called_clip). Such clip containing html given if
            there's no clip code in it then when it's called it merely pastes its
            content into the current doc.

            --
            Alan.
          Your message has been successfully submitted and would be delivered to recipients shortly.