Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create complex macros - Part 2

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
ineuw



Joined: 18 Mar 2007
Posts: 172

PostPosted: Tue Oct 21, 2014 1:55 am    Post subject: How to create complex macros - Part 2 Reply with quote

The names on the left were assigned in case I wanted to string 20 macros into one, and each one assigned a file name, but I managed to crate a single macro for five different actions (without an error).

Name Find Replace_with

01_2SpcToSpc SpcSpc Spc
02_HRtAndSpc \nSpc \n
03_SpcAndHRt Spc\n \n
04_3HRt \n\n\n \n\n
05_HyphenAndHRt -\n nothing, join the line

06_SpcAndHyphen Spc- -
07_HyphenAndSpc -Spc -
08_SpcAndComma Spc, ,
09_SpcAndDot Spc. .
10_SpcAndsColon Spc; ;

11_SpcAndColon Spc: :
12_SpcAndqMark Spc? ?
13_SpcAndexMark Spc! !
14_TrimRMdash MDASHSpc MDASH
15_TrimLMdash SpcMDASH MDASH

16_EnclMDash MDASH {{MDASH}}
17_2HRtToSpc~~ \n\n ~~
18_~~To2HRt ~~ \n\n
19_HRtToSpc \n Spc
20_2DotsToDotSpcDot .. . .

The spaces above were supposed to be tabs and the MDASH character cannot be in the post. I use the macro to clean up and word wrap text from Wikisource/Wikipedia.

The macro is available for upload - if permitted
_________________
Windows 10 Pro 64bit, TextPad 8.6.0, 64bit as of 2021-04-10.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB