This clip will create a Definition List (DL) including building DT and DD tags.
This is posted in the wrong place … a version 2.0 of this clip is available where it belongs. Sorry for any confusion.
This clip will create a Definition List (DL) including building DT and DD tags.
This is posted in the wrong place … a version 2.0 of this clip is available where it belongs. Sorry for any confusion.
A reader on the notetab list asked for a clip to generate a list of words with a first letter capitalized (the rest of the word can be upper or lower cased so long as the first letter is capitalized). I tried a couple of versions that worked pretty well on my test files. Because the sort function puts umlauted characters at the bottom of the alphabet in a sort and the reader wanted to preserve umlauted characters, I decided that this method was better. This clip ran 8 minutes for the reader on a 500K file. I didn’t disable screen update so you can see the progress, but that also slows the machine.
Here is the clip:
; by don at htmlfixit.com ; using a bunch of Hugo's ideas ; runs a text file and makes ; a list of all words that start ; with a capital letter ^!Menu Edit/Copy All ^!Toolbar Paste New ^!Replace "^P" >> " " ATIWS ^!Replace ")" >> " " ATIWS ^!Replace "(" >> " " ATIWS ^!Replace """ >> " " ATIWS ^!Replace "^T" >> " " ATIWS ^!Replace "," >> " " ATIWS ^!Replace "[" >> " " ATIWS ^!Replace "]" >> " " ATIWS ^!Replace "< " >> " " ATIWS ^!Replace ">" >> " " ATIWS ^!Replace "~" >> " " ATIWS ^!Replace "!" >> " " ATIWS ^!Replace "@" >> " " ATIWS ^!Replace "#" >> " " ATIWS ^!Replace "$" >> " " ATIWS ^!Replace "%" >> " " ATIWS ^!Replace "^" >> " " ATIWS ^!Replace "&" >> " " ATIWS ^!Replace "*" >> " " ATIWS ^!Replace "_" >> " " ATIWS ^!Replace "+" >> " " ATIWS ^!Replace "=" >> " " ATIWS ^!Replace "|" >> " " ATIWS ^!Replace "{" >> " " ATIWS ^!Replace "}" >> " " ATIWS ^!Replace "" >> " " ATIWS ^!Replace "/" >> " " ATIWS ^!Replace "?" >> " " ATIWS ^!Replace "." >> " " ATIWS ^!Replace ";" >> " " ATIWS ^!Replace ":" >> " " ATIWS ^!Replace "" >> " " ATIWS ^!Replace "" >> " " ATIWS ^!Replace " " >> " " ATIWS ^!Replace "´" >> " " ATIWS ^!Replace "’" >> " " ATIWS ^!Replace "" >> " " ATIWS ^!Replace "‘" >> " " ATIWS ^!Replace "`" >> " " ATIWS ^!Replace "¡" >> " " ATIWS ^!Replace "¢" >> " " ATIWS ^!Replace "£" >> " " ATIWS ^!Replace "¤" >> " " ATIWS ^!Replace "¥" >> " " ATIWS ^!Replace "§" >> " " ATIWS ^!Replace "©" >> " " ATIWS ^!Replace "«" >> " " ATIWS ^!Menu Modify/Spaces/Single Space ^!Replace " " >> "^P" ATIWS ^!Replace "^P´" >> "^P" ATIWS ^!Replace "^P-" >> "^P" ATIWS ^!Replace "^P " >> "^P" ATIWS ^!Menu Edit/Copy All ^!SetClipboard ^$StrSort("^$GetClipboard$";1;1;1)$ ^!Select All ^!Toolbar Paste ^!Jump 1 ; following is to dump all numer or lower cased ; first character lines :DumpBad ^!If ^$GetRow$ = ^$GetLinecount$ Sort2 ^!Select +1 ^!IfTrue ^$IsEmpty("^$GetLine$")$ NEXT ELSE SKIP_2 ^!Keyboard DELETE ^!GoTo DumpBad ^!If "^$IsNumber("^$GetSelection$")$" = "1" SKIP ^!If "^$IsUppercase("^$GetSelection$")$" = "1" SKIP_4 ^!Select Eol ^!Keyboard DELETE ^!Keyboard DELETE ^!GoTo DumpBad :GoNext ^!Jump +1 ^!GoTo DumpBad ; following is to eliminate single characters on one line :Sort2 ^!Jump 1 :Sort2a ^!Select Eol ^!IfError END ^!If ^$StrSize("^$GetSelection$")$ > 1 SKIP_2 ^!Keyboard DELETE ^!Keyboard DELETE ^!Jump +1 ^!GoTo Sort2a>
This also removes any single character lines (under the theory those aren’t words).
Significant things done in this clip:
generating a list of words by replacing most non-alphanumeric with a space
replacing all double spaces with a single space and a return
sorting of the words that are now on single lines using the function in notetab
elimate all lines that don’t have an uppercase letter as the first character (note that we needed to use the test clip info to be sure that ^!IsUppercase was alphabetic before testing if it was upper case)
remove lines with only one character on them
I found something interesting the other day … non-uppercase characters were testing positive for ^$IsUppercase. While you might presume only an uppercase character/string would test positive for this, it is actually testing to be sure there are no lower-case alphabetic characters. The opposite is also true with ^$IsLowercase testing for Not Uppercase. So you first need to be sure you don’t have either a number or a non-alphabetic character if that is important before using either ^$IsUppercase or ^$IsLowercase
Testing the ^$IsUppercase function:
; by don at htmlfixit.com ; any-non lowercase non-alphabetic ; character tests positive as Uppercase ^!SetArray %Original%="0";"1";"|";"?";"a";"@";"1";"+";"=";"F";"`";"~";"-";"q";"L";"[";"}";" ";"x" ^!Set %count%=0 :Loop ^!Inc %count% ^!If "^%count%" > "^%Original0%" End ^!If "^$IsUppercase("^%Original^%count%%")$" = "1" UPPER ELSE NOTUPPER :UPPER ^!Info "^%Original^%count%%" is POSITIVE when tested as upper case -- even if it isn't a letter ^!GoTo Loop :NOTUPPER ^!Info "^%Original^%count%%" is negative when tested as upper case ^!GoTo Loop
Testing the ^$IsLowercase function:
; by don at htmlfixit.com ; any-non lowercase non-alphabetic ; character tests positive as Uppercase ^!SetArray %Original%="0";"1";"|";"?";"a";"@";"1";"+";"=";"F";"`";"~";"-";"q";"L";"[";"}";" ";"x" ^!Set %count%=0 :Loop ^!Inc %count% ^!If "^%count%" > "^%Original0%" End ^!If "^$IsLowercase("^%Original^%count%%")$" = "1" UPPER ELSE NOTUPPER :UPPER ^!Info "^%Original^%count%%" is POSITIVE when tested as lower case -- even if it isn't a letter ^!GoTo Loop :NOTUPPER ^!Info "^%Original^%count%%" is negative when tested as lower case ^!GoTo Loop
I wanted to see if ^$GetLinecount$ updates on the fly every time a line is deleted. It does as shown by the following clip:
; by don at htmlfixit.com ; this clip is to show that ; if you delete lines the ; variable ^$GetLinecount$ updates ; itself on the fly ;create file ^!Menu File/New ;put 10 lines in the file ^!InsertText 1^P2^P3^P4^P5^P6^P7^P8^P9^P10 ;display linecount, should be 10 ^!Info Line Count: ^$GetLinecount$ ;put cursor at bottom ^!Jump Doc_End ;select to line 6 ^!SelectTo 6:1 ;delete last 5 lines ^!Keyboard DELETE ^!Keyboard BACKSPACE ;display linecount, should be 5 ^!Info Line Count: ^$GetLinecount$ ; it works! ^$GetLinecount$ updates
A reader on the YahooGroups Clips List was wondering how to open files in Irfanview via a NoteTab Clip. I proposed the following two solutions:
(more…)
This clip will take a selection of data contained in a comma separated file (without quotes) and reorder those fields in a random fashion.
It is often necessary to replace the & character with the entity & to get validated (x)html. This clip will replace all appropriate ampersands excluding those that are part of defined character entities.
(more…)
This site is totally free to use, you have absolutely no moral or legal obligations to help us continue.
There are however, some costs involved in running the site.
So if this site helped you find your way,
perhaps you could consider contributing to our costs.
Whatever amount you feel this site was worth to you would be just wonderful.
Use PayPal
if you do decide to share and help us with the costs and in appreciation
for our time and attention, or alternatively buy a book from our Bookstore..
Time in Don's part of the world is:
November 21, 2024, 3:39 am
Time in Franki's part of the world is:
November 21, 2024, 4:39 pm
Don't worry neither one sleeps very long!
privacy policy ::
support us
:: home
:: live chat help
contact us
:: forum
::tutorials
:: bookstore
:: Site Map
Currently browsing the archives for the Notetab Clips category.
Browser Statistics | |
Internet Explorer 8 | 5.88% |
IE 7 | 17.63% |
IE 6 | 2.3% |
IE 5 | 0.00% |
IE other | 8.6% |
Moz Firefox 3.x | 3.03% |
Moz Firefox 2.x | 0.18% |
Moz Firefox 0.x/1.x | 26.65% |
Netscape 8.x | 0.00% |
NS 6+/Mozilla | 2.73% |
Moz Seamonkey | 0.00% |
K-meleon | 0.00% |
Epiphany | 0.00% |
Netscape 4.x | 0.00% |
Opera 9.x | 0.00% |
Opera 8.x | 0.00% |
Opera 7.x | 0.42% |
Opera 6.x | 0.00% |
Opera other | 0.42% |
Safari Mac/Intel | 5.21% |
Safari Mac/PPC | 0.06% |
Safari Windows | 25.2% |
Google Chrome | 1.51% |
Konqueror | 0.18% |
Galeon | 0.00% |
WebTV | 0.00% |
Resolution Statistics | |
640 x 480 | 0.25% |
800 x 600 | 26.14% |
1024 x 768 | 36.55% |
1152 x 864 | 0.25% |
1280 x 800 | 11.68% |
1280 x 854 | 0.00% |
1280 x 1024 | 17.01% |
1400 x 1050 | 0.00% |
1600 x 1200 | 1.02% |
1920 x 1200 | 7.11% |
2560 x 1024 | 0.00% |
OS Statistics | |
Windows 7 | 41.55% |
Windows Vista | 2.4% |
Windows 2003 | 3.91% |
Windows XP | 20.86% |
Windows 2000 | 0.36% |
Windows NT4 | 0.05% |
Windows 98/ME | 0.05% |
Windows 95 | 0.00% |
Linux/UNIX/BSD | 8.76% |
Mac OSX | 8.03% |
Mac Classic | 0.00% |
Misc | 14.03% |
New Windows Virus Alerts
also by sophos.
17 Apr 2011 Troj/Mdrop-DKE
17 Apr 2011 Troj/Sasfis-O
17 Apr 2011 Troj/Keygen-FU
17 Apr 2011 Troj/Zbot-AOY
17 Apr 2011 Troj/Zbot-AOW
17 Apr 2011 W32/Womble-E
17 Apr 2011 Troj/VB-FGD
17 Apr 2011 Troj/FakeAV-DFF
17 Apr 2011 Troj/SWFLdr-W
17 Apr 2011 W32/RorpiaMem-A
For details and removal instructions, click the virus in question.