<?xml version="1.0" encoding="UTF-8"?>
<rename_preset case="none" group="转换" ignoreext="yes" script="yes" type="normal" version="13">
	<from>*</from>
	<to>*</to>
	<script>@script jscript
// 中英混排加空格
// 在汉字和英文单词间添加空格
// 作者：混沌 Ib
// 版本：211030
// 仓库：https://github.com/Chaoses-Ib/IbDOpusScripts
function OnGetNewName(getNewNameData)
{
    var name = getNewNameData.newname_stem_m
    
    var dict = [ &apos;[a-z\\-0-9]{2}&apos;, &apos;C\\+\\+&apos;, &apos;[CF]#&apos; ]
    for (var i = 0; i &lt; dict.length; i++) {
        name = name.replace(new RegExp(&apos;([〇㐀-鿭-礼])(&apos; + dict[i] + &apos;)&apos;, &apos;ig&apos;), &apos;$1 $2&apos;)
        name = name.replace(new RegExp(dict[i] + &apos;(?=[〇㐀-鿭-礼])&apos;, &apos;ig&apos;), &apos;$&amp; &apos;)
    }
    
    return name + getNewNameData.newname_ext_m
}
</script>
</rename_preset>
