[/table] |
|
if (document.selection.isempty) |
|
nFlags=eeFindNext | eeReplaceAll | eeFindReplaceRegExp; |
|
|
nFlags=eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp; |
|
|
menu.Add( "半角标点→全角", 1); |
|
|
|
result = menu.Track( 0 ); |
|
if (result>40) nFlags=nFlags=eeFindNext | eeReplaceAll | eeFindReplaceRegExp; |
|
|
case 1: //半角标点符号 → 全角标点符号 |
|
//alert( "引号部分的转换可能存在错误,脚本运行完毕后,会以绿色标示出来,请手动修改。"); |
|
// document.selection.Replace(",",",",eeFindNext | eeReplaceAll); |
|
// document.selection.Replace(".","。",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("([0-9]),([0-9]{3})","\\1,\\2",nFlags); |
|
document.selection.Replace("([0-9])。([0-9])","\\1\\.\\2",nFlags); |
|
document.selection.Replace("?","?",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("!","!",eeFindNext | eeReplaceAll); |
|
document.selection.Replace(":",":",eeFindNext | eeReplaceAll); |
|
document.selection.Replace(";",";",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("(","(",eeFindNext | eeReplaceAll); |
|
document.selection.Replace(")",")",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("┅","…",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("@","@",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("#","#",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("%","%",eeFindNext | eeReplaceAll); |
|
// document.selection.Replace("<","《",eeFindNext | eeReplaceAll); |
|
// document.selection.Replace(">","》",eeFindNext | eeReplaceAll); |
|
// document.selection.Replace("<","《",eeFindNext | eeReplaceAll); |
|
// document.selection.Replace(">","》",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("~","~",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("^","^",eeFindNext | eeReplaceAll); |
|
document.selection.Replace("&","&",eeFindNext | eeReplaceAll); |
|
|
[table=100%,#f2f2f2] document.selection.Replace("([: ])\x22","\\1“",eeFindNext | eeReplaceAll)//x22为引号 |