home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-14 | 4.6 KB | 217 lines | [TEXT/QED1] |
- "Unbreak Text" macro def.
- # This will replace all <returns> between selected lines with a space.
- # Double spaced lines and lines that begin with a space, tab, or
- # asterisk are not affected.
- Unbreak Text
- Change "" "" "gst-w-G"
- Set Line Width
- Key 74
- Key
- Change "\r\r" "\0" "gst-w-G"
- Change "\([^\0]\)\r\([^ \t\*]\)" "\1 \2" "gst-w-G"
- Change "\0" "\r\r" "gstA-w"
- Change ":b$" "" "gst-w-G"
-
-
- "Break Text" macro def.
- # This will will remove CRs using the Unbreak Text macro,
- # then set the line width, wrap the lines, and add CRs
- # This is very useful for formatting BBS Bulletins.
- Change Tabs ->Spaces
- Set Line Width
- Key 74
- Key
- Change " :^\([^\r]\)" "\r\1" "gst-w-G"
- Change ":s\r+" "" "gst-w-G"
- Change "\r+:e" "" "gst-w-G"
- Set Line Width
- Key None
- Key
-
-
-
- "Plot Usage" macro def.
- # Select lines containing usage figures. (Must be followed by '%')
- # This will convert the numeric data into a simple text plot.
- Copy "8"
- New "Usage Plot"
- Paste "8"
- Change "\( *[^- ]*\).:*\(:#+\)%.*" "\1 \2% \0\2" "g-wat"
- Change " \(:#%\)" " \1" "g-wat"
- Change "\0\(:#\)$" "\00\1" "g-wat"
- Change "\01" "\0•" "g-wat"
- Change "\02" "\0••" "g-wat"
- Change "\03" "\0•••" "g-wat"
- Change "\04" "\0••••" "g-wat"
- Change "\05" "\0•••••" "g-wat"
- Change "\06" "\0••••••" "g-wat"
- Change "\07" "\0•••••••" "g-wat"
- Change "\08" "\0••••••••" "g-wat"
- Change "\09" "\0•••••••••" "g-wat"
- Change "\00" "\0" "g-wat"
- Change "\0" "" "g-wat"
- Change "•" "**********" "g-wat"
- Change "1$" "*" "g-wat"
- Change "2$" "**" "g-wat"
- Change "3$" "***" "g-wat"
- Change "4$" "****" "g-wat"
- Change "5$" "*****" "g-wat"
- Change "6$" "******" "g-wat"
- Change "7$" "*******" "g-wat"
- Change "8$" "********" "g-wat"
- Change "9$" "*********" "g-wat"
- Change "0$" "" "g-wat"
- ## The next two lines will scale the data 2:1 (untested)
- # Change "**" "!" "-gs"
- # Change "*" "" "-gs"
- ## Or this line will double the scale for increased differential
- # Change "*" "!!" "-gs"
-
-
-
- "Separate Stats" macro def.
- # Open a 'CL Analysis' file (name is not important) and
- # run this macro. It will extract various reports and
- # put them in separate files with tab delineation between
- # fields.
- Jump "1"
- Set Marker "ACL"
- Find "Monthly Report"
- Find "^ *:#:?:*\r^$" "gA"
- Copy "0"
- New "Monthly Stats"
- Paste "0"
- Change "%" "" "-ga"
- Change "^ +" "" "ga"
- Change " +" "\t" "ga"
- Select All
- Copy "0"
- Save
- Close
- Jump "ACL"
- Find "Weekly Report"
- Find "^ *:#:?:*\r^$" "g"
- Copy "0"
- New "Weekly Stats"
- Paste "0"
- Change "%" "" "-ga"
- Change "^ +" "" "ga"
- Change " +" "\t" "ga"
- Select All
- Copy "0"
- Save
- Close
- Jump "ACL"
- Find "Day Report"
- Find "^:A" "g"
- Find "^:A:?:*\r^$" "g"
- Copy "0"
- New "Day Of Week Stats"
- Paste "0"
- Change "%" "" "-ga"
- Change " +" "\t" "ga"
- Select All
- Copy "0"
- Save
- Close
- Jump "ACL"
- Find "Daily Report"
- Find "^ *:#:?:*\r^$" "g"
- Copy "0"
- New "Daily Stats"
- Paste "0"
- Change "%" "" "-ga"
- Change "^ +" "" "ga"
- Change " +" "\t" "ga"
- Select All
- Copy "0"
- Save
- Close
- Jump "ACL"
- Find "Hourly Report"
- Find "^ *:#:?:*\r^$" "g"
- Copy "0"
- New "Hourly Stats"
- Paste "0"
- Change "%" "" "-ga"
- Change "\- -:#+\::#:#" "" "ga"
- Change "^ +" "" "ga"
- Change " +" "\t" "ga"
- Select All
- Copy "0"
- Save
- Close
- Jump "ACL"
- Set Marker "ACL"
- Close
-
-
- "Sort List Of Menus" macro def.
- # This particular macro is obsolete, since I added this capability to
- # ListMenus 3.5. It is included to show what QUED/M macros are capable
- # of. It will sort the menus in a pre 3.5 List Of Menus file according
- # to the order in the hierarchy table.
- Open ":List Of Menus"
- Find "^ 1 1" "ga-w"
- Find "^" "rg-w"
- Set Marker "S"
- Find "^$" "g-w"
- Jump "S"
- Cut "8"
- New ":Ordered List"
- Paste "8"
- Change ":b*:#+:b*:#+ *" to "" "gat-w"
- Change ^$\r" to "" "gat-w"
- Jump "1"
- Set Marker "Order"
- Sort BBS Menus1
- Open ":List Of Menus"
- Jump "1"
- Paste "8"
- Jump "Order"
- Close
- Key n
- :1 "The List Of Menus file is now ordered."
-
-
- "Sort BBS Menus1 " macro def.
- # This macro is used recursively by Sort List Of Menus
- Jump "Order"
- Find "^\:.*$" "Tg-w"
- Cut "0"
- Open ":List Of Menus"
- Jump "1"
- Find '\*\*\*\*\*\* "\C0' "av-g-w"
- Find "^" "gr-wt"
- Set Marker "S"
- Find "^[ \<\>]=" "gt"
- Find "\r^$" "g-wt"
- Find "^" "g-wt"
- Jump "S"
- Cut "8"
- Sort BBS Menus1
-
-
-
-
- "Sort By ULs" macro def.
- # This macro assumes that the user data has been placed in the current
- # file. It will sort the data according to the UL count, deleting all
- # users who have 0 uploads.
- Change "/ \(:d/8[678]\)" "/0\1" "ga-wt-G"
- Change "^\(.:*\)\.\.+:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*:b+.:*\(:#+\).*" to "\2\t\1" "gat-w"
- Select All
- Sort Lines
- Change "^0.*\r" to "" "g-wa"
- Copy "9" ""
- Jump "END"
- Invert Line Order
- Paste "9"
-
-
- "Invert Line Order" macro def.
- # This is a recursive macro used by Sort By ULs
- Find "^.*\r" "gT-wr"
- Cut "9"
- Invert Line Order
-