Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f84ed5

Browse files
committed
Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the same macroman characters.
1 parent dfebe90 commit 6f84ed5

48 files changed

Lines changed: 234 additions & 232 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mac/Contrib/AECaptureParser/AECaptureParser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def map(self, t):
260260
'type(': [('type(', "aetypes.Type('"), (')', "')")],
261261
"'null'()": [("'null'()", "None")],
262262
'abso(': [('abso(', "aetypes.Unknown('abso', ")],
263-
'³': [('³', '"')],
264-
'²': [('²', '"')],
263+
'–': [('–', '"')],
264+
'”': [('”', '"')],
265265
'[': [('[', '('), (', ', ',')],
266266
']': [(']', ')')],
267267
'«': [('«', "«")],
@@ -353,7 +353,7 @@ def addquotes(txt):
353353
eventreceptacle = """
354354
355355
[event: target="Finder", class=core, id=setd]
356-
'----':obj {form:prop, want:type(prop), seld:type(posn), from:obj {form:name, want:type(cfol), seld:³MoPar:Data:DevDev:Python:Python 1.5.2c1:Extensions², from:'null'()}}, data:[100, 10]
356+
'----':obj {form:prop, want:type(prop), seld:type(posn), from:obj {form:name, want:type(cfol), seld:–MoPar:Data:DevDev:Python:Python 1.5.2c1:Extensions”, from:'null'()}}, data:[100, 10]
357357
[/event]
358358
359359
"""

Mac/Contrib/BBPy.lm/BBPy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ char start(struct runloc& r,BBLMParamBlock &pb)
5656
r.last_start = pb.fCalcRunParams.fStartOffset;
5757
r.pos = pb.fCalcRunParams.fStartOffset;
5858
r.p = ((unsigned char*)pb.fText) + pb.fCalcRunParams.fStartOffset;
59-
// Adjust for the gap if we¹re not already past it.
59+
// Adjust for the gap if weÕre not already past it.
6060
if ((!r.past_gap) && (r.pos >= pb.fTextGapLocation)){
6161
r.p += pb.fTextGapLength;
6262
r.past_gap = true;

Mac/Contrib/BBPy.lm/PythonBBLM.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This is the Python Language Module for BBEdit.
22

33
This software is a plugin to Bare Bones Software's BBEdit 6.0.2 (or more), designed to make editing & browsing Python Language files easer.
44

5-
It parses any file ending in .py (or extentions of your choice.) providing BBEdit with the information BBEdit needs to provide services for python files similar to those it provides for 'C'. Namely: syntax coloring and populating BBEdit's '�' popup menu with file's functions and classes.
5+
It parses any file ending in .py (or extentions of your choice.) providing BBEdit with the information BBEdit needs to provide services for python files similar to those it provides for 'C'. Namely: syntax coloring and populating BBEdit's '�' popup menu with file's functions and classes.
66

77
This Plug-in needs to be placed in your :BBEdit 6.0:BBEdit Support:Language Modules: folder.
88

Mac/Contrib/BBPy/PythonSlave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def quit(self, *args):
6363
raise self
6464

6565
def getabouttext(self):
66-
return "About PythonSlaveŠ"
66+
return "About PythonSlaveƒ"
6767

6868
def do_about(self, id, item, window, event):
6969
EasyDialogs.Message("PythonSlave " + __version__ + "\rCopyright © 1996, Letterror, JvR")

Mac/Contrib/PythonScript/ReadMe.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ from the target before going on to the next event
2929

3030
Object is a appleevent object specifier and is of the form
3131

32-
PythonScript.PsClass.Class1(arg).Class2(arg)�.Property()
32+
PythonScript.PsClass.Class1(arg).Class2(arg)�.Property()
3333

3434
All applescript event, class and property names are capitalised to
3535
distinguish them from python methods.

Mac/Demo/applescript/Disk_Copy/Special_Events.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def mount(self, _object, _attributes={}, **_arguments):
2424
Required argument: a reference to the disk image to be mounted
2525
Keyword argument access_mode: the access mode for mounted volume (default is "any", i.e. best possible)
2626
Keyword argument checksum_verification: Verify the checksum before mounting?
27-
Keyword argument signature_verification: Verify the DigiSign signature before mounting?
27+
Keyword argument signature_verification: Verify the DigiSignŽ signature before mounting?
2828
Keyword argument RAM_caching: Cache the disk image in RAM? (if omitted, don't cache)
2929
Keyword argument _attributes: AppleEvent attribute dictionary
3030
Returns: a reference to mounted disk
@@ -57,7 +57,7 @@ def execute_DiskScript(self, _object, _attributes={}, **_arguments):
5757
"""execute DiskScript: Executes a Disk Copy-specific DiskScript
5858
Required argument: a reference to the DiskScript to execute
5959
Keyword argument checksum_verification: Should checksums be verified when mounting images referenced in the DiskScript?
60-
Keyword argument signature_verification: Should the DigiSign signature of the DiskScript and the images it references be verified?
60+
Keyword argument signature_verification: Should the DigiSignŽ signature of the DiskScript and the images it references be verified?
6161
Keyword argument _attributes: AppleEvent attribute dictionary
6262
"""
6363
_code = 'ddsk'
@@ -158,10 +158,10 @@ def verify_checksum(self, _object, _attributes={}, **_arguments):
158158
return _arguments['----']
159159

160160
def verify_signature(self, _object, _attributes={}, **_arguments):
161-
"""verify signature: Verify the DigiSign signature for a Disk Copy document
161+
"""verify signature: Verify the DigiSignŽ signature for a Disk Copy document
162162
Required argument: the disk image to be verified
163163
Keyword argument _attributes: AppleEvent attribute dictionary
164-
Returns: Is the DigiSign signature valid?
164+
Returns: Is the DigiSignŽ signature valid?
165165
"""
166166
_code = 'ddsk'
167167
_subcode = 'Vsig'
@@ -183,7 +183,7 @@ def verify_signature(self, _object, _attributes={}, **_arguments):
183183
}
184184

185185
def sign_image(self, _object, _attributes={}, **_arguments):
186-
"""sign image: Add a DigiSign signature to a Disk Copy document
186+
"""sign image: Add a DigiSignŽ signature to a Disk Copy document
187187
Required argument: the disk image to be signed
188188
Keyword argument using_signer: a reference to signer file to use
189189
Keyword argument _attributes: AppleEvent attribute dictionary
@@ -213,7 +213,7 @@ def sign_image(self, _object, _attributes={}, **_arguments):
213213
def create_a_floppy_from(self, _object, _attributes={}, **_arguments):
214214
"""create a floppy from: create a floppy disk from a Disk Copy document
215215
Required argument: the disk image to make a floppy from
216-
Keyword argument signature_verification: Should the DigiSign signature be verified before creating a floppy disk?
216+
Keyword argument signature_verification: Should the DigiSignŽ signature be verified before creating a floppy disk?
217217
Keyword argument erase_confirmation: Should the user be asked to confirm the erasure of the previous contents of floppy disks?
218218
Keyword argument make_multiple_floppies: Should the user be prompted to create multiple floppy disks?
219219
Keyword argument _attributes: AppleEvent attribute dictionary
@@ -241,7 +241,7 @@ def create_a_floppy_from(self, _object, _attributes={}, **_arguments):
241241
}
242242

243243
def check_image(self, _object, _attributes={}, **_arguments):
244-
"""check image: Check the disk image¹s internal data structures for any inconsistencies. Works on NDIF, Disk Copy 4.2, DART, or DiskSet images.
244+
"""check image: Check the disk imageÕs internal data structures for any inconsistencies. Works on NDIF, Disk Copy 4.2, DARTŽ, or DiskSet images.
245245
Required argument: the disk image to be verified
246246
Keyword argument details: Should the disk image details be displayed?
247247
Keyword argument _attributes: AppleEvent attribute dictionary
@@ -313,7 +313,7 @@ def create_SMI(self, _object, _attributes={}, **_arguments):
313313
Keyword argument launching_document: the path to a document to open
314314
Keyword argument version_string: sets the 'vers' 1 resource of the self-mounting image
315315
Keyword argument checksum_verification: Should the checksum of the source images be verified before creating the SMI?
316-
Keyword argument signature_verification: Should the DigiSign signature of the source images be verified before creating the SMI?
316+
Keyword argument signature_verification: Should the DigiSignŽ signature of the source images be verified before creating the SMI?
317317
Keyword argument image_signing: Should the SMI be given a digital signature when it is created?
318318
Keyword argument _attributes: AppleEvent attribute dictionary
319319
Returns: a reference to the self-mounting image created

Mac/Demo/applescript/Disk_Copy/Standard_Suite.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def save(self, _object, _attributes={}, **_arguments):
3030
Keyword argument _in: the target object
3131
Keyword argument using_format: the format for the target
3232
Keyword argument checksum_verification: Should the checksum be verified before saving?
33-
Keyword argument signature_verification: Should the DigiSign signature be verified before saving?
33+
Keyword argument signature_verification: Should the DigiSignŽ signature be verified before saving?
3434
Keyword argument image_signing: Should the image be signed?
3535
Keyword argument leave_image_mounted: Should the image be mounted after saving?
3636
Keyword argument percent_free_space: percent free space to reserve (for image folder operation, 0-255%)
@@ -258,7 +258,7 @@ class file_format(aetools.NProperty):
258258
which = 'Ifmt'
259259
want = 'TEXT'
260260
class signed(aetools.NProperty):
261-
"""signed - Does the disk image have a DigiSign signature? """
261+
"""signed - Does the disk image have a DigiSignŽ signature? """
262262
which = 'Isin'
263263
want = 'bool'
264264
class compressed(aetools.NProperty):
@@ -384,7 +384,7 @@ class copy_type(aetools.NProperty):
384384
Save_reply_record._elemdict = {
385385
}
386386
_Enum_UIAc = {
387-
'never_interact' : 'eNvr', # Don¹t allow any interaction at all
387+
'never_interact' : 'eNvr', # DonÕt allow any interaction at all
388388
'interact_with_self' : 'eInS', # Only allow interaction from internal events
389389
'interact_with_local' : 'eInL', # Allow interaction from any event originating on this machine
390390
'interact_with_all' : 'eInA', # Allow interaction from network events
@@ -399,7 +399,7 @@ class copy_type(aetools.NProperty):
399399

400400
_Enum_rcpT = {
401401
'block_disk_copy' : 'cpBl', # block-by-block disk-level copy
402-
'files_and_file_ID_copy' : 'cpID', # all files including desktop databases and file ID¹s
402+
'files_and_file_ID_copy' : 'cpID', # all files including desktop databases and file IDÕs
403403
'files_and_desktop_info' : 'cpDT', # all files and most desktop information
404404
'files_only' : 'cpFI', # all files but no desktop information
405405
'disk_image_conversion' : 'cpCV', # disk image format conversion

Mac/IDE scripts/Hack/Toolbox Assistant...

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ToolboxAssi:
3535
try:
3636
self.talker = Toolbox('ALTV', start = 1)
3737
except:
38-
raise W.AlertError, "Can�t find �Toolbox Assistant�"
38+
raise W.AlertError, "Can�t find �Toolbox Assistant�"
3939
lookup = self.w.edit.get()
4040
try:
4141
self.talker.LookupTopic(lookup)

Mac/Lib/MACFS.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,28 @@
7070
kVolumeRootFolderType = 'root'
7171
kChewableItemsFolderType = 'flnt'
7272
kApplicationSupportFolderType = 'asup'
73-
kTextEncodingsFolderType = 'Ÿtex'
73+
kTextEncodingsFolderType = '€tex'
7474
kStationeryFolderType = 'odst'
7575
kOpenDocFolderType = 'odod'
7676
kOpenDocShellPlugInsFolderType = 'odsp'
7777
kEditorsFolderType = 'oded'
78-
kOpenDocEditorsFolderType = 'Ÿodf'
78+
kOpenDocEditorsFolderType = '€odf'
7979
kOpenDocLibrariesFolderType = 'odlb'
80-
kGenEditorsFolderType = 'Ÿedi'
81-
kHelpFolderType = 'Ÿhlp'
82-
kInternetPlugInFolderType = 'Ÿnet'
83-
kModemScriptsFolderType = 'Ÿmod'
80+
kGenEditorsFolderType = '€edi'
81+
kHelpFolderType = '€hlp'
82+
kInternetPlugInFolderType = '€net'
83+
kModemScriptsFolderType = '€mod'
8484
kPrinterDescriptionFolderType = 'ppdf'
85-
kPrinterDriverFolderType = 'Ÿprd'
86-
kScriptingAdditionsFolderType = 'Ÿscr'
87-
kSharedLibrariesFolderType = 'Ÿlib'
85+
kPrinterDriverFolderType = '€prd'
86+
kScriptingAdditionsFolderType = '€scr'
87+
kSharedLibrariesFolderType = '€lib'
8888
kVoicesFolderType = 'fvoc'
8989
kControlStripModulesFolderType = 'sdev'
90-
kAssistantsFolderType = 'astŸ'
91-
kUtilitiesFolderType = 'utiŸ'
92-
kAppleExtrasFolderType = 'aexŸ'
90+
kAssistantsFolderType = 'ast€'
91+
kUtilitiesFolderType = 'uti€'
92+
kAppleExtrasFolderType = 'aex€'
9393
kContextualMenuItemsFolderType = 'cmnu'
94-
kMacOSReadMesFolderType = 'morŸ'
94+
kMacOSReadMesFolderType = 'mor€'
9595
kALMModulesFolderType = 'walk'
9696
kALMPreferencesFolderType = 'trip'
9797
kALMLocationsFolderType = 'fall'

Mac/Lib/cfmfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, path = None):
7070
try:
7171
data = Res.Get1Resource('cfrg', 0).data
7272
except Res.Error:
73-
raise Res.Error, "no Œcfrg¹ resource found", sys.exc_traceback
73+
raise Res.Error, "no •cfrgÕ resource found", sys.exc_traceback
7474
finally:
7575
Res.CloseResFile(resref)
7676
Res.UseResFile(currentresref)
@@ -146,7 +146,7 @@ def build(self):
146146

147147
def getfragment(self):
148148
if self.where <> 1:
149-
raise error, "can¹t read fragment, unsupported location"
149+
raise error, "canÕt read fragment, unsupported location"
150150
f = open(self.path, "rb")
151151
f.seek(self.offset)
152152
if self.length:
@@ -158,7 +158,7 @@ def getfragment(self):
158158

159159
def copydata(self, outfile):
160160
if self.where <> 1:
161-
raise error, "can¹t read fragment, unsupported location"
161+
raise error, "canÕt read fragment, unsupported location"
162162
infile = open(self.path, "rb")
163163
if self.length == 0:
164164
infile.seek(0, 2)

0 commit comments

Comments
 (0)