Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
04/18/24 at 15:55:23
News: Try magicHijack!, Hoist, Move, & Gather, is simply amazing!
Home Help Search Login Register


Pages: 1
Send Topic Print
  Rating
Rate:
Rating:
Rating: 9.00
Votes: 2

5
4
3
2
1








1

1

5
4
3
2
1


1


2


3


4


5


6


7


8


9


10

FREEWARE EM Slang RTF Outline Copier (Popularity: 6264 )
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post FREEWARE EM Slang RTF Outline Copier
01/25/08 at 08:53:19
 

 
 
Please note:  This tool REQUIRES THAT THE SLANG EXTENSION BE RUNNING.   (For more info,  check out the Slang boards in the EM forum).
 
 
 
Rename (remove the _file from the extension),  Run  and Use.
 
 
 
Click on the tray icon to COPY the SELECTED outline items as OUTLINE FORMAT RTF.
 
(Shift + Click to copy outilne as single spaced between same level items.)
 
 
This tool was originally inspired by the very cool code scripted by acs322000 at http://tech.groups.yahoo.com/group/ecco_pro/message/2412
Quote:
Re: copy outline with numbers


Well, I've come up with this PowerPro script that turns an RTF
outline in the clipboard into a numbered RTF outline in the
clipboard. You need PowerPro to run this script; perhaps someone with
AutoIt experience could translate it into a stand-alone mini-app.

; TabOutline2IntOutline()
; Given ECCO outline exported as RTF text to clipboard using eccoext
; push to clipboard RTF outline modified to add outline numbers
i.j.k. etc.
; usage: copy from ECCO, run TabOutline2IntOutline, paste to RTF
editor
; --------------------------------------------------------------------
function TabOutline2IntOutline()
local srtf=clip.getrtf
local
hRE=regex.pcrecompile(?"^(\\li\d+){0,1}([^\s]*)(\s*)(.+)$","multiline")
local iCount=hRE.pcrematchcount(srtf)
local capCount=hRE.pcrecapturecount
local hVec=vec.create2D(iCount,capCount+1)
local aCount=hRE.pcrematchall(srtf,"","",0,hVec)
local nl=esc(?"\n",?"\")
local s,outline,level,i,j
outline=vec.create(32)
for (i=0;i<32;i++)
outline[i]=0
endfor
//assert: first clipboard line is rtf header; output it verbatim
srtf=hVec[0,0] // first clipboard line; x,0 is whole line
//assert: last clipboard line is rtf terminator; output it verbatim
//assert: all remaining lines are to be modified
for (i=1;i<iCount-1;i++)
s=hVec[i,1]
if(!s)do
s=?"\li0" //fake the match
endif
//else matched literal \li400 | \li800 | \li1200 ...
level=s[3,10]/400
outline[level]=1+outline[level]
s=""
for(j=0;j<32;j++)
if(j<=level)do
s ++= outline[j]++"."
else
outline[j]=0
endif
endfor
hVec[i,4]=s++" "++hVec[i,4]
//endif
s = ""
for (j=1;j<capCount+1;j++)
//win.debug("hVec["++i++","++j++"]", hVec[i,j])
s ++= hVec[i,j]
endfor
srtf ++= nl++s
endfor
srtf ++= nl++hVec[iCount-1,0] // last clipboard line; x,0 is whole
line
clip.setrtf(srtf)
quit

 
 
 
EUA, TERMS, ETC.:

 
 
We are transmitting or delivering to you a copy of our software,  similar to if we were transmitting or delivering to you a copy of a radio show.  We own the original program, as an entire work, including but not limited to the coding, text, html,  images, graphics, layout, design, and look and feel, all of which are COPYRIGHT by us, and all rights to which are retained by and RESERVED by us.   Similarly, the source code including any and all parts which are based on our trade secret or any patented or patent-pending technology,  are retained by us,  and your right is limited to a right to use the object code distributed to you.   You agree not to look under the hood, and to keep fully secret and confidential, even from your own eyes,  all internal processes of the program.            
           
We grant you,  and only to you,  the right to use,  for either a single user on as many machines used exclusively by that user, or for a single machine with multiple non-remote users.   You may, of course,  make reasonable backups of the program, if kept securely by you,  and not in such a way that others might have access or the opportunity to copy or steal the program from your backups.            
           
You are authorized to re-transmit or copy the program for your own use, from a fixed media to another fixed media or to local RAM of your machine,  in order to use the program in an ordinary fashion.  You are not authorized to modify, crack, or hack the program.  Application or implementation of any  modification, crack, or hack, is a violation of this end user agreement, and a violation of the program's copyright.            
           
The the full extent permitted by law, no warranties are made, and the software is transmitted "as-is".  Use of this software has not been tested by us on your individual machine or circumstances,  and you acknowledge this and you agree to assume all risk of use.  No warranty of fitness for use, and no warranty for merchantability are made by us,  and ALL IMPLIED WARRANTIES are, to the extent permitted by law,  fully disclaimed by us.   To the extent permitted by law,  the limitations of remedies for any breach of warranty is limited to replacement of the software, or refund of the purchase price,  at our exclusive option.            
           
           
This product is distributed "AS-IS".            
           
           
Please report any comments,  suggestions, bugs, or problems to:    BugReport@eccoMAGIC.com            
           
           
           
©2006-2008.  ECCOMAGIC.  All Rights Reserved.  
 

 
 
Enjoy !
 
 
 
Smiley
Back to top
« Last Edit: 06/21/08 at 20:54:16 by Admin »  

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print