Skip to content

Instantly share code, notes, and snippets.

@specter119
Last active January 6, 2021 03:15
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save specter119/ea9440c8573aa0df266ea87745226d37 to your computer and use it in GitHub Desktop.
Save specter119/ea9440c8573aa0df266ea87745226d37 to your computer and use it in GitHub Desktop.
Fix multiple locale et al in GB/T 7714 bibliography generated by Zotero(csl) for MS-Word
Sub deng2etal()
'
' deng2etal macro
' English等 -> english, et al
'
With Selection.Find
.Forward = True
.ClearFormatting
.Text = "(<[A-z]@)等"
With .Replacement
.ClearFormatting
.Text = "\1, et al"
End With
.Wrap = wdFindStop
.Execute Replace:=wdReplaceAll, MatchWildcards:=True
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment