Fixed encoding on Windows
This commit is contained in:
parent
99d3a237d8
commit
9171e2e850
4 changed files with 17 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?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="Configuration" script:language="StarBasic" script:moduleType="normal">Public Const redactionExtensionName As String = "cleanAndValidate"
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Configuration" script:language="StarBasic" script:moduleType="normal">Public Const redactionExtensionName As String = "cleanAndValidate"
|
||||||
Public Const redactionExtensionVersion = "0.9.9"
|
Public Const redactionExtensionVersion = "0.9.10"
|
||||||
Function initRedactionConfiguration()
|
Function initRedactionConfiguration()
|
||||||
On Error Goto exceptionHandler
|
On Error Goto exceptionHandler
|
||||||
Dim regFactory As Object
|
Dim regFactory As Object
|
||||||
|
|
|
@ -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="Validation" script:language="StarBasic">Sub markval15
|
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Validation" script:language="StarBasic">Sub markval16
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -807,14 +807,23 @@ Function getCharsInFont(fontName As String) As String
|
||||||
Dim n As Integer 'Holds the file number
|
Dim n As Integer 'Holds the file number
|
||||||
Dim f As Integer 'Index variable
|
Dim f As Integer 'Index variable
|
||||||
Dim s As String 'Temporary string for input
|
Dim s As String 'Temporary string for input
|
||||||
|
Dim fileaccess As Object
|
||||||
|
Dim outtextstream As Object
|
||||||
|
Dim out As Object
|
||||||
|
|
||||||
Dim sTemp$
|
Dim sTemp$
|
||||||
GlobalScope.BasicLibraries.loadLibrary("Tools")
|
GlobalScope.BasicLibraries.loadLibrary("Tools")
|
||||||
path=DirectoryNameoutofPath(ThisComponent.getURL(),"/")
|
path=DirectoryNameoutofPath(ThisComponent.getURL(),"/")
|
||||||
FileName = path & "/symbolsInFont" & fontName & ".html"
|
FileName = path & "/symbolsInFont" & fontName & ".html"
|
||||||
n = FreeFile() 'Next free file number
|
'n = FreeFile() 'Next free file number
|
||||||
Open FileName For Output Access Read Write As #n 'Open for read/write
|
'Open FileName For Output Access Read Write As #n 'Open for read/write
|
||||||
Print #n, "<html><head><title>" & getTranslation("symbolsInFontHeading") & " "& fontName & "</title></head><body><h2>" & getTranslation("symbolsInFontHeading") & " "& fontName &":</h2>"&resultString &"</body></html>"
|
fileaccess = createUnoService ("com.sun.star.ucb.SimpleFileAccess")
|
||||||
Close #n
|
outtextstream = createUnoService ("com.sun.star.io.TextOutputStream")
|
||||||
|
outtextstream.setEncoding( "UTF-8" )
|
||||||
|
out = fileaccess.openFileWrite( FileName )
|
||||||
|
outtextstream.setOutputStream( out )
|
||||||
|
outtextstream.writeString( "<html><head><title>" & getTranslation("symbolsInFontHeading") & " "& fontName & "</title></head><body><h2>" & getTranslation("symbolsInFontHeading") & " "& fontName &":</h2>"&resultString &"</body></html>" )
|
||||||
|
outtextstream.closeOutput()
|
||||||
getCharsInFont = FileName
|
getCharsInFont = FileName
|
||||||
Exit Function
|
Exit Function
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
def releaseVersion = "0.9.9"
|
def releaseVersion = "0.9.10"
|
||||||
task oxt(type: Zip) {
|
task oxt(type: Zip) {
|
||||||
dependsOn = [ 'setVersion','setVersionInBasicCode' ]
|
dependsOn = [ 'setVersion','setVersionInBasicCode' ]
|
||||||
from './'
|
from './'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<identifier value="pro.litvinovg.Redaction"/>
|
<identifier value="pro.litvinovg.Redaction"/>
|
||||||
<version value="0.9.9"/>
|
<version value="0.9.10"/>
|
||||||
<platform value="all"/>
|
<platform value="all"/>
|
||||||
<display-name>
|
<display-name>
|
||||||
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
<name lang="en">Cleaning and validation documents for publishing in html and epub with pagination</name>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue