diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-17 12:35:13 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-17 12:35:13 (GMT) |
commit | dfebe90c4c04a7a36e4542907118ddce97085868 (patch) | |
tree | 98f4b888c92d32b011a336ed914d381853585cac /Mac | |
parent | 716cf918390f86c69fb1525e13273570521da759 (diff) | |
download | cpython-dfebe90c4c04a7a36e4542907118ddce97085868.zip cpython-dfebe90c4c04a7a36e4542907118ddce97085868.tar.gz cpython-dfebe90c4c04a7a36e4542907118ddce97085868.tar.bz2 |
Fixed macroman<->latin1 conversion. Some characters don't exist in latin1, but at least the roundtrip gives
the correct macroman characters again.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Tools/IDE/PyDocSearch.py | 2 | ||||
-rw-r--r-- | Mac/Tools/IDE/PythonIDEMain.py | 22 | ||||
-rw-r--r-- | Mac/Tools/IDE/Splash.py | 8 | ||||
-rw-r--r-- | Mac/Tools/IDE/Wapplication.py | 8 | ||||
-rw-r--r-- | Mac/Tools/IDE/Wtext.py | 2 | ||||
-rw-r--r-- | Mac/Tools/IDE/Wtraceback.py | 6 | ||||
-rw-r--r-- | Mac/Tools/IDE/Wwindows.py | 2 |
7 files changed, 25 insertions, 25 deletions
diff --git a/Mac/Tools/IDE/PyDocSearch.py b/Mac/Tools/IDE/PyDocSearch.py index b036556..599c3e0 100644 --- a/Mac/Tools/IDE/PyDocSearch.py +++ b/Mac/Tools/IDE/PyDocSearch.py @@ -101,7 +101,7 @@ class Results: class Status: def __init__(self): - self.w = W.Dialog((440, 64), "Searching") + self.w = W.Dialog((440, 64), "Searching") self.w.searching = W.TextBox((4, 4, -4, 16), "DevDev:PyPyDoc 1.5.1:ext:parseTupleAndKeywords.html") self.w.hits = W.TextBox((4, 24, -4, 16), "Hits: 0") self.w.canceltip = W.TextBox((4, 44, -4, 16), "Type cmd-period (.) to cancel.") diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 3ff7e59..d5677a7 100644 --- a/Mac/Tools/IDE/PythonIDEMain.py +++ b/Mac/Tools/IDE/PythonIDEMain.py @@ -50,13 +50,13 @@ class PythonIDE(Wapplication.Application): def makeusermenus(self): m = Wapplication.Menu(self.menubar, "File") newitem = FrameWork.MenuItem(m, "New", "N", 'new') - openitem = FrameWork.MenuItem(m, "Open", "O", 'open') + openitem = FrameWork.MenuItem(m, "Open", "O", 'open') FrameWork.Separator(m) closeitem = FrameWork.MenuItem(m, "Close", "W", 'close') saveitem = FrameWork.MenuItem(m, "Save", "S", 'save') - saveasitem = FrameWork.MenuItem(m, "Save as", None, 'save_as') + saveasitem = FrameWork.MenuItem(m, "Save as", None, 'save_as') FrameWork.Separator(m) - saveasappletitem = FrameWork.MenuItem(m, "Save as Applet", None, 'save_as_applet') + saveasappletitem = FrameWork.MenuItem(m, "Save as Applet", None, 'save_as_applet') FrameWork.Separator(m) quititem = FrameWork.MenuItem(m, "Quit", "Q", 'quit') @@ -71,7 +71,7 @@ class PythonIDE(Wapplication.Application): selallitem = FrameWork.MenuItem(m, "Select all", "A", "selectall") sellineitem = FrameWork.MenuItem(m, "Select line", "L", "selectline") FrameWork.Separator(m) - finditem = FrameWork.MenuItem(m, "Find", "F", "find") + finditem = FrameWork.MenuItem(m, "Find", "F", "find") findagainitem = FrameWork.MenuItem(m, "Find again", 'G', "findnext") enterselitem = FrameWork.MenuItem(m, "Enter search string", "E", "entersearchstring") replaceitem = FrameWork.MenuItem(m, "Replace", None, "replace") @@ -84,12 +84,12 @@ class PythonIDE(Wapplication.Application): runitem = FrameWork.MenuItem(m, "Run window", "R", 'run') runselitem = FrameWork.MenuItem(m, "Run selection", None, 'runselection') FrameWork.Separator(m) - moditem = FrameWork.MenuItem(m, "Module browser", "M", self.domenu_modulebrowser) + moditem = FrameWork.MenuItem(m, "Module browser", "M", self.domenu_modulebrowser) FrameWork.Separator(m) mm = FrameWork.SubMenu(m, "Preferences") - FrameWork.MenuItem(mm, "Set Scripts folder", None, self.do_setscriptsfolder) - FrameWork.MenuItem(mm, "Editor default settings", None, self.do_editorprefs) - FrameWork.MenuItem(mm, "Set default window font", None, self.do_setwindowfont) + FrameWork.MenuItem(mm, "Set Scripts folder", None, self.do_setscriptsfolder) + FrameWork.MenuItem(mm, "Editor default settings", None, self.do_editorprefs) + FrameWork.MenuItem(mm, "Set default window font", None, self.do_setwindowfont) self.openwindowsmenu = Wapplication.Menu(self.menubar, 'Windows') self.makeopenwindowsmenu() @@ -110,7 +110,7 @@ class PythonIDE(Wapplication.Application): path = os.path.join(os.getcwd(), "Scripts") if not os.path.exists(path): os.mkdir(path) - f = open(os.path.join(path, "Place your scripts here"), "w") + f = open(os.path.join(path, "Place your scripts here"), "w") f.close() fss = macfs.FSSpec(path) self.scriptsfolder = fss.NewAlias() @@ -156,10 +156,10 @@ class PythonIDE(Wapplication.Application): if ftype == 'TEXT': self.openscript(path) else: - W.Message("Can¹t open file of type '%s'." % ftype) + W.Message("CanÕt open file of type '%s'." % ftype) def getabouttext(self): - return "About Python IDE" + return "About Python IDE" def do_about(self, id, item, window, event): Splash.about() diff --git a/Mac/Tools/IDE/Splash.py b/Mac/Tools/IDE/Splash.py index 862d82e..07a51e4 100644 --- a/Mac/Tools/IDE/Splash.py +++ b/Mac/Tools/IDE/Splash.py @@ -71,7 +71,7 @@ import sys _keepsplashscreenopen = 0 -abouttext1 = """The Python Integrated Development Environment for the Macintosh +abouttext1 = """The Python Integrated Development Environment for the Macintosh Version: %s Copyright 1997-2000 Just van Rossum, Letterror. <just@letterror.com> Python %s @@ -79,11 +79,11 @@ Python %s See: <http://www.python.org/> for information and documentation.""" flauwekul = [ 'Goodday, Bruce.', - 'What¹s new?', + 'WhatÕs new?', 'Nudge, nudge, say no more!', - 'No, no sir, it¹s not dead. It¹s resting.', + 'No, no sir, itÕs not dead. ItÕs resting.', 'Albatros!', - 'It¹s . . .', + 'ItÕs . . .', 'Is your name not Bruce, then?', """But Mr F.G. Superman has a secret identity . . . when trouble strikes at any time . . . diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py index 88c415c..540fca0 100644 --- a/Mac/Tools/IDE/Wapplication.py +++ b/Mac/Tools/IDE/Wapplication.py @@ -344,18 +344,18 @@ class Application(FrameWork.Application): # XXX and that's the last thing we want here. f, filename, (suff, mode, dummy) = imp.find_module(modname) except ImportError: - raise W.AlertError, "Can¹t find file for ³%s²" % modname + raise W.AlertError, "CanÕt find file for %s" % modname else: if not f: - raise W.AlertError, "Can¹t find file for ³%s²" % modname + raise W.AlertError, "CanÕt find file for %s" % modname f.close() if suff == '.py': self.openscript(filename, lineno, charoffset) return else: - raise W.AlertError, "Can¹t find file for ³%s²" % modname + raise W.AlertError, "CanÕt find file for %s" % modname else: - raise W.AlertError, "Can¹t find file %s¹" % filename + raise W.AlertError, "CanÕt find file %sÕ" % filename if lineno is not None: editor.selectline(lineno, charoffset) return editor diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py index 41ea5ec..b87008b 100644 --- a/Mac/Tools/IDE/Wtext.py +++ b/Mac/Tools/IDE/Wtext.py @@ -871,7 +871,7 @@ class PyEditor(TextEditor): if onoff: if not __debug__: import W - raise W.AlertError, "Can¹t debug in ³Optimize bytecode² mode.\r(see ³Default startup options² in EditPythonPreferences)" + raise W.AlertError, "CanÕt debug in Optimize bytecode mode.\r(see Default startup options in EditPythonPreferences)" import PyDebugger self._debugger = PyDebugger.getdebugger() self._debugger.register_editor(self, self.file) diff --git a/Mac/Tools/IDE/Wtraceback.py b/Mac/Tools/IDE/Wtraceback.py index 9b54b17..10894a8 100644 --- a/Mac/Tools/IDE/Wtraceback.py +++ b/Mac/Tools/IDE/Wtraceback.py @@ -57,7 +57,7 @@ class TraceBack: filename = os.path.split(filename)[1] if lineno: charno = charno - 1 - text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "" + line[charno:-1] + text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "" + line[charno:-1] else: text = str(value) + '\rFile: "' + str(filename) + '"' self.syntaxdialog = W.ModalDialog((360, 120), "Syntax Error") @@ -123,10 +123,10 @@ class TraceBack: self.w.editbutton = W.Button((10, -30, 60, 16), "Edit", self.edit) self.w.editbutton.enable(0) - self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse locals", self.browselocals) + self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse locals", self.browselocals) self.w.browselocalsbutton.enable(0) - self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortem", self.postmortem) + self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortem", self.postmortem) self.w.setdefaultbutton(self.w.editbutton) self.w.bind("cmdb", self.w.browselocalsbutton.push) diff --git a/Mac/Tools/IDE/Wwindows.py b/Mac/Tools/IDE/Wwindows.py index 2d449c7..e16c647 100644 --- a/Mac/Tools/IDE/Wwindows.py +++ b/Mac/Tools/IDE/Wwindows.py @@ -568,7 +568,7 @@ def FrontWindowInsert(stuff): pass import EasyDialogs if EasyDialogs.AskYesNoCancel( - "Can¹t find window or widget to insert text into; copy to clipboard instead?", + "CanÕt find window or widget to insert text into; copy to clipboard instead?", 1) == 1: import Scrap Scrap.ZeroScrap() |