diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index d814093..019ce05 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,6 +1,6 @@ -Sub mark64 +Sub mark65 End Sub @@ -249,6 +249,7 @@ End Sub Private Sub unicodeSymbolsConversion convertWLLatin2IPHAstra + convertSymbol Dim newFontName As String newFontName = "IPH Astra Serif" @@ -303,9 +304,10 @@ Private Sub unicodeSymbolsConversion RAtts(1).Value = newFontName RAtts(2).Value = newFontName '\u2200-\u22FF CJK Unified Ideographs + '\u21d2 двойная стрелка вправо '3000—303F Символы и пунктуация ККЯ - unicodeConversionEverywhere("[\u302b\uff00-\uffef]+",RAtts) + unicodeConversionEverywhere("[\u21d2\u302b\uff00-\uffef]+",RAtts) newFontName = "Noto Serif CJK SC" RAtts(0).Value = newFontName @@ -695,6 +697,7 @@ Private Sub saveAndreload() document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:Save", "", 0, Array()) + dispatcher.executeDispatch(document, ".uno:Reload", "", 0, Array()) End Sub @@ -1328,6 +1331,29 @@ Private Sub replaceWhiteBackgroundWithTransparent statusIndicator.end() End Sub + +Sub convertSymbol + Dim newFontName As String + Dim oSearchString As String + Dim oReplaceString As String + 'newFontName = "IPH Astra Serif" + Dim SrchAttributes(0) as new com.sun.star.beans.PropertyValue + Dim ReplAttributes(0) as new com.sun.star.beans.PropertyValue + SrchAttributes(0).Name = "CharFontName" + SrchAttributes(0).Value = "Symbol" + ReplAttributes(0).Name = "CharFontName" + ReplAttributes(0).Value = "Noto Serif CJK JP" + + oSearchString = "\uF0DE" + oReplaceString = "⇒" + ReplaceFormatting(oSearchString,oReplaceString,SrchAttributes,ReplAttributes, false) + oSearchString = "\uF0DB" + oReplaceString = "⇔" + ReplaceFormatting(oSearchString,oReplaceString,SrchAttributes,ReplAttributes, false) + + 'replaceFontsInStyles( "WL LatinAllIn1Goth", newFontName) +End Sub + Private Sub convertWLLatin2IPHAstra Dim newFontName As String Dim oSearchString As String