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

Re: [NTB] What is NoteTab for?

Expand Messages
  • Don Passenger
    We actually wrote these clips a while back I believe for use in perl... study these.... for one line: ; This Clip works on one line of text. ; It finds the
    Message 1 of 41 , Dec 30, 2000
      We actually wrote these clips a while back I believe for use in perl...
      study these....
      for one line:

      ; This Clip works on one line of text.
      ; It finds the first and last quotes.
      ; Next it replaces any quotes inside of
      ; the outside quotes with a backslash and
      ; a quote, to permit use inside of a perl
      ; string. Consider whether the perl qq function
      ; will serve your purposes instead of using this.
      ; For example:
      ; print "<font face="arial" color="red">red arial output</font>";
      ; Becomes:
      ; print "<font face=\"arial\" color=\"red\">red arial output</font>";
      ; Note: outside quotes are unaffected.
      ;
      ;
      ; Based on work of Sojourner@..., jody
      ; Authored by dpasseng@...
      ; Last Updated 04/30/2000, dpasseng@...
      ;
      ^!SetScreenUpdate Off
      ^!Jump LINE_START
      ^!Select LINE
      :Find_First_Quote
      ^!Find """ SIH
      ^!IfError End
      ^!Set %Start%=^$GetRow$:^$Calc(^$GetCol$+1)$
      ^!SetCursor ^$GetRow$:^$Calc(^$GetCol$+1)$
      ^!Select EOL
      :Find_Last_Quote
      ^!Find """ SIHB
      ^!IfError End
      ^!Set %End%=^$GetRow$:^$GetCol$
      :Do_The_Replace
      ; Highlight the Text Inside the Quotes
      ^!SetCursor ^%Start%
      ^!SelectTo ^%End%
      ; Actual Replace
      ^$StrReplace(""";"\"";"^$GetSelection$";0;0)$


      And for the whole document I think....with a minor change...
      ; Last Updated 04/30/2000, Sojourner@..., jody
      ^!SetScreenUpdate Off
      ^!Jump LINE_START ;IF WISH WHOLE DOCUMENT JUMP TO TEXT_START
      :Loop
      ^!Find " "" SI
      ^!IfError End
      ^!Find "="" S
      ^!Select HTMLTag
      ^!IfError End
      ^$StrReplace(""";"\"";"^$GetSelection$";0;0)$
      ;^!Goto Loop ;--- IF UNCOMMENTED WILL LOOP

      End of clips....so happy new year back at you!



      ---
      Don Passenger
      Personal Page: http://www.iserv.net/~dpasseng

      snip...
      I hit F6
      > and find an image file named "picture.gif" and drag it into the edit
      > window. That gives me a line like this:
      >
      > <IMG SRC="images/picture.gif" WIDTH="280" HEIGHT="100" BORDER="0"
      > ALT="picture">
      >
      > But in context, it probably needs to be more like this:
      >
      > append PageContent "
      > <IMG SRC=\"images/picture.gif\" WIDTH=\"280\" HEIGHT=\"100\"
      > BORDER=\"0\" ALT=\"picture\">
      > "
      >
      > So I have to go into it and manually insert the backslashes so Tcl won't
      > get confused. Yeah, I could probably write some clips to streamline
      > some of these inconvenience, but I'm not yet sufficiently upset about
      > the inefficiency. Even with this manual work, F6 is a great feature and
      > I really appreciate Eric's making it possible for me to get the image
      > geometry without cranking up PaintShop Pro every time I need to insert
      > an image.
      snip
    • Greg Chapman
      Hi Eric/Jody, Clueless said... ... Ever since the notion of a Gold Edition first saw its light on the list, I ve asked myself this question. It seemed clear
      Message 41 of 41 , Aug 28, 2001
        Hi Eric/Jody,

        Clueless said...
        > Would it be possible to produce a NoteTab with optional configurable
        > features in extra add-on files? So there could be a basic NoteTab
        > kernel, and you could always carry that around on a floppy.
        > But if you wanted additional features, like the clip languagefor
        > example, you could set the configuration to add those, and then NTB
        > would incorporate those features, thus increasing it's size.

        Ever since the notion of a "Gold Edition" first saw its light on the
        list, I've asked myself this question.

        It seemed clear to me that an edition with every imaginable feature in
        it was going to suffer the same kind of bloat that the dreaded MS WORD
        suffers. I know there is recognition that NOTETAB is too big for some
        purposes or Jody wouldn't have pointed me in the direction of the GUN
        (Grown Up Notepad) or Metapad for some of the lighter weight tasks for
        which one might need a text editor.

        Put me at my ease! Tell me v5 will work like this.

        (It's already a real pain trying to run NoteTab from a floppy!)

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