vbscript 检测小型大写

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 检测小型大写相关的知识,希望对你有一定的参考价值。


Sub detectSmallCap()
    With ActiveDocument.Content.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Text = ChrW(100) + "-"
        .MatchWildcards = False
        .Replacement.Text = ""
        .Replacement.highlight = True
        .Execute Replace:=wdReplaceAll
    End With
    
    With ActiveDocument.Content.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Text = ChrW(108) + "-"
        .MatchWildcards = True
        .Replacement.Text = ""
        .Replacement.highlight = True
        .Execute Replace:=wdReplaceAll
    End With
End Sub


以上是关于vbscript 检测小型大写的主要内容,如果未能解决你的问题,请参考以下文章

C++ 小型与全部大写数据类型

Java:检查 otf 字体文件是不是包含小型大写字形

泰山OFFICE技术讲座:小型大写字母的研究

泰山OFFICE技术讲座:小型大写字母的研究

在Google文档中,将小型大写字母格式应用于部分行

小型大写文字