* src/docgen/AbiWord2Doc.py: fix latin encoding issues
* src/docgen/KwordDoc.py: fix latin encoding issues * src/docgen/OpenSpreadSheet.py: fix latin encoding issues * src/plugins/GraphViz.py: fix latin encoding issues svn: r5257
This commit is contained in:
parent
efc4e76449
commit
a391498dc0
@ -1,4 +1,8 @@
|
||||
2005-09-29 Don Allingham <don@gramps-project.org>
|
||||
* src/docgen/AbiWord2Doc.py: fix latin encoding issues
|
||||
* src/docgen/KwordDoc.py: fix latin encoding issues
|
||||
* src/docgen/OpenSpreadSheet.py: fix latin encoding issues
|
||||
* src/plugins/GraphViz.py: fix latin encoding issues
|
||||
* src/plugins/DetAncestralReport.py: Fixed generation string
|
||||
* src/plugins/DetDescendantReport.py: Fixed generation string
|
||||
|
||||
|
@ -38,7 +38,6 @@ import PluginMgr
|
||||
import ImgManip
|
||||
import GrampsMime
|
||||
|
||||
from latin_utf8 import latin_to_utf8
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -298,7 +298,7 @@ class KwordDoc(BaseDoc.BaseDoc):
|
||||
|
||||
self.f.write('<PARAGRAPH>\n')
|
||||
self.f.write('<TEXT>')
|
||||
self.f.write(latin_to_utf8(self.text))
|
||||
self.f.write(unicode(self.text))
|
||||
self.f.write('</TEXT>\n')
|
||||
self.f.write('<FORMATS>\n')
|
||||
for format in self.format_list:
|
||||
|
@ -38,7 +38,6 @@ from gettext import gettext as _
|
||||
import BaseDoc
|
||||
from SpreadSheetDoc import *
|
||||
|
||||
from latin_utf8 import latin_to_utf8
|
||||
import const
|
||||
|
||||
import Errors
|
||||
@ -393,7 +392,7 @@ class OpenSpreadSheet(SpreadSheetDoc):
|
||||
text = text.replace('>','>')
|
||||
text = text.replace('\t','<text:tab-stop/>')
|
||||
text = text.replace('\n','<text:line-break/>')
|
||||
self.f.write(latin_to_utf8(text))
|
||||
self.f.write(unicode(text))
|
||||
|
||||
def _write_manifest(self):
|
||||
self.manifest_xml = tempfile.mktemp()
|
||||
@ -439,7 +438,6 @@ class OpenSpreadSheet(SpreadSheetDoc):
|
||||
pass
|
||||
raise Errors.ReportError(_("Could not create %s") % self.meta_xml)
|
||||
|
||||
name = latin_to_utf8(self.name)
|
||||
self.f = open(self.meta_xml,"w")
|
||||
self.f.write('<?xml version="1.0" encoding="UTF-8"?>\n')
|
||||
self.f.write('<office:document-meta ')
|
||||
|
@ -49,7 +49,6 @@ import ReportOptions
|
||||
import GenericFilter
|
||||
import RelLib
|
||||
from BaseDoc import PAPER_LANDSCAPE
|
||||
from latin_utf8 import utf8_to_latin
|
||||
from QuestionDialog import ErrorDialog
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@ -321,7 +320,7 @@ class GraphViz:
|
||||
else:
|
||||
self.f.write('%s=%s, ' % (style, self.colors['unknown']))
|
||||
if self.latin:
|
||||
label = utf8_to_latin(label)
|
||||
label = label.encode('iso-8859-1')
|
||||
self.f.write('fontname="%s", label="%s"];\n' % (self.fontname,label))
|
||||
|
||||
# Output families's nodes.
|
||||
|
Loading…
Reference in New Issue
Block a user