Added two Symbol conversion chars and fixed reload macro
This commit is contained in:
parent
12f7f4ab34
commit
42ed0a21ee
1 changed files with 28 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
||||||
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark64
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Clean" script:language="StarBasic">Sub mark65
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -249,6 +249,7 @@ End Sub
|
||||||
Private Sub unicodeSymbolsConversion
|
Private Sub unicodeSymbolsConversion
|
||||||
|
|
||||||
convertWLLatin2IPHAstra
|
convertWLLatin2IPHAstra
|
||||||
|
convertSymbol
|
||||||
|
|
||||||
Dim newFontName As String
|
Dim newFontName As String
|
||||||
newFontName = "IPH Astra Serif"
|
newFontName = "IPH Astra Serif"
|
||||||
|
@ -303,9 +304,10 @@ Private Sub unicodeSymbolsConversion
|
||||||
RAtts(1).Value = newFontName
|
RAtts(1).Value = newFontName
|
||||||
RAtts(2).Value = newFontName
|
RAtts(2).Value = newFontName
|
||||||
'\u2200-\u22FF CJK Unified Ideographs
|
'\u2200-\u22FF CJK Unified Ideographs
|
||||||
|
'\u21d2 двойная стрелка вправо
|
||||||
'3000—303F Символы и пунктуация ККЯ
|
'3000—303F Символы и пунктуация ККЯ
|
||||||
|
|
||||||
unicodeConversionEverywhere("[\u302b\uff00-\uffef]+",RAtts)
|
unicodeConversionEverywhere("[\u21d2\u302b\uff00-\uffef]+",RAtts)
|
||||||
|
|
||||||
newFontName = "Noto Serif CJK SC"
|
newFontName = "Noto Serif CJK SC"
|
||||||
RAtts(0).Value = newFontName
|
RAtts(0).Value = newFontName
|
||||||
|
@ -695,6 +697,7 @@ Private Sub saveAndreload()
|
||||||
document = ThisComponent.CurrentController.Frame
|
document = ThisComponent.CurrentController.Frame
|
||||||
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
|
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
|
||||||
dispatcher.executeDispatch(document, ".uno:Save", "", 0, Array())
|
dispatcher.executeDispatch(document, ".uno:Save", "", 0, Array())
|
||||||
|
dispatcher.executeDispatch(document, ".uno:Reload", "", 0, Array())
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
@ -1328,6 +1331,29 @@ Private Sub replaceWhiteBackgroundWithTransparent
|
||||||
statusIndicator.end()
|
statusIndicator.end()
|
||||||
End Sub
|
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
|
Private Sub convertWLLatin2IPHAstra
|
||||||
Dim newFontName As String
|
Dim newFontName As String
|
||||||
Dim oSearchString As String
|
Dim oSearchString As String
|
||||||
|
|
Loading…
Add table
Reference in a new issue