Modifying a script to remove _ and replace with a space
Posted: 14 May 2022, 23:15
The following script on GitHub is a TitleCase script. It comes with an INI file where you can find a character/phrase and replace it, however, I dont' know the command to replace with a space. I have used, " ", %A_Space
https://github.com/lintalist/TitleCase
Here is the INI file, I added the two bottom lines which work, it just needs to output a space instead.
https://github.com/lintalist/TitleCase
Here is the INI file, I added the two bottom lines which work, it just needs to output a space instead.
Code: Select all
; -------------------------------------------------------------------------------------------
; TitleCase - https://github.com/lintalist/TitleCase
; ------------------------------------------------------------------------------------------
[en]
LowerCaseList=a,an,and,amid,as,at,atop,be,but,by,for,from,if,in,into,is,it,its,nor,not,of,off,on,onto,or,out,over,past,per,plus,than,the,till,to,up,upon,v,vs,via,with
UpperCaseList=AHK,IBM,UK,USA
MixedCaseList=AutoHotkey,iPod,iPad,iPhone
ExceptionsList=
AlwaysLowerCaseList=
OrdinalIndicator_Find=im)\b(\d+)(st|nd|rd|th)\b
OrdinalIndicator_Replace=$1$L{2}
Hypen1_Find=im)-\K(.)
Hypen1_Replace=$U{1}
Hypen2_Find=im)-(and|but|for|nor|of|or|so|yet)-
Hypen2_Replace=-$L{1}-
Hypen3_Find=_
Hypen3_Replace=" "