{smcl} {* *! version 1.2 07 February 2012}{...} help for {cmd:strimplify}{right:version 1.2 (07 February 2012)} {hline} {title:Title} {phang} {bf:strimplify} {hline 2} convert umlauts and delete special characters in string {title:Syntax} {p 8 17 2} {cmd:strimplify} {it:string} [, {opt var:mode} {opt num:bers} {opt noreplace} {opt suffix(string)} {opt nocase} {opt verbose}] {synoptset 30 tabbed}{...} {synopthdr} {synoptline} {synopt:{opt var:mode}}instead of converting {it:string}, interprete it as {varlist} and convert any string contained in each specified variable{p_end} {synopt:{opt num:bers}}delete numbers from {it:string}{p_end} {synopt:{opt noreplace}}do not replace variable in {opt varmode}, but generate new{p_end} {synopt:{opt suffix(string)}}suffix to append to the newly generated variable{p_end} {synopt:{opt nocase}}do not convert {it:string} to upper case{p_end} {synopt:{opt verbose}}give verbose output{p_end} {synoptline} {p2colreset}{...} {title:Description} {pstd} {bf:strimplify} converts umlauts in a given {it:string} to its ascii form and deletes special characters from it. With the {opt varmode} option, it does this with all stirings in {varlist} instead of a single string. {break}The resulting string will be easy to process with string-comparison operations, which is the aim of the procedure. {pstd} Note that if {it:string} contains quotes, it has to be specified using compound double quotes. {title:Options} {dlgtab:Main} {phang} {opt varmode} if specified, {it:string} is interpreted as {varlist}. The conversion operation will be run for each string contained inside the given variable(s). {break}If not specified, {it:string} will be processed as is, and the results returned in scalars. {phang} {opt numbers} in addition to processing umlauts and special characters, delete numeric characters from {it:string}. {phang} {opt nogenerate} instead of replacing strings in variable mode, generate new variable containing results. This variable will be named as the original, but with a suffix as specified by {opt suffix}. {phang} {opt suffix(string)} if specified, {it:string} will be appended to the newly generated variable in {opt varmode} with the {opt noreplace} option. {break} If not specified, {it:_simple} is used in such cases. {phang} {opt nocase} if specified, do not convert {it:string} to upper case letters (which is what happens by default). {phang} {opt verbose} drops verbose output during the process. Eventually needed for debugging your syntax. {title:Remarks} {pstd} This command is part of the NEPmgmt bundle, written to help creating the {browse "https://www.neps-data.de/":NEPS} dataset files. {pstd} The source code of the program is licensed under the GNU General Public License version 3 or later. The corresponding license text can be found on the internet at {browse "http://www.gnu.org/licenses/"} or in {help gnugpl}. {title:Examples} {phang}Process the string {it:tEsT$!123} and delete numbers from it:{p_end} {phang}{cmd:. strimplify tEsT$!123, numbers}{p_end} {phang}Process all strings in variables and and delete numbers from it, without converting to upper case characters:{p_end} {phang}{cmd:. strimplify stringvar1 stringvar2, varmode numbers nocase}{p_end} {phang}Do the same, but instead of replacing the current variables, generate new ones with the suffix {it:_simplified}:{p_end} {phang}{cmd:. strimplify stringvar1 stringvar2, varmode numbers noreplace suffix(_simplified) nocase}{p_end} {title:Author} {pstd} Daniel Bela ({browse "mailto:daniel.bela@lifbi.de":daniel.bela@lifbi.de}), Leibniz Institute for Educational Trajectories (LIfBi), Germany. {title:Saved results} {pstd} {cmd:strimplify} saves the following in {cmd:r()}: {synoptset 20 tabbed}{...} {p2col 5 20 24 2: Scalars}{p_end} {synopt:{cmd:r(oldstring)}}original string specified by the user (if used without option {opt varmode}){p_end} {synopt:{cmd:r(newstring)}}converted string (if used without option {opt varmode}){p_end} {p2colreset}{...} {title:Also see} {psee} {space 2}Help: {help NEPSmgmt} {p_end}