CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 18 Jul 2025 00:16:16 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20071208100024
location: https://web.archive.org/web/20071208100024/https://wiki.python.org/moin/MacPython/TECManager
server-timing: captures_list;dur=0.481332, exclusion.robots;dur=0.016125, exclusion.robots.policy;dur=0.009112, esindex;dur=0.009635, cdx.remote;dur=11.073060, LoadShardBlock;dur=232.532620, PetaboxLoader3.datanode;dur=95.655229, PetaboxLoader3.resolve;dur=84.755490
x-app-server: wwwb-app216
x-ts: 302
x-tr: 265
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app216; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 18 Jul 2025 00:16:17 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sat, 08 Dec 2007 10:00:23 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 08 Dec 2007 10:00:24 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 08 Dec 2007 10:00:24 GMT", ; rel="memento"; datetime="Sat, 08 Dec 2007 10:00:24 GMT", ; rel="next memento"; datetime="Thu, 11 Aug 2011 04:35:24 GMT", ; rel="last memento"; datetime="Sun, 21 Jul 2024 04:15:26 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_1_20071208084132_crawl105-c/52_1_20071208095932_crawl107.arc.gz
server-timing: captures_list;dur=0.470448, exclusion.robots;dur=0.017542, exclusion.robots.policy;dur=0.008572, esindex;dur=0.011900, cdx.remote;dur=20.465832, LoadShardBlock;dur=781.061936, PetaboxLoader3.datanode;dur=570.597166, PetaboxLoader3.resolve;dur=249.294706, load_resource;dur=110.363748
x-app-server: wwwb-app216
x-ts: 200
x-tr: 955
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
MacPython/TECManager - PythonInfo Wiki
MacPython/TECManager
TECManager
Pythonic wrapper for the Text to Unicode functionality of Apple's Text Encoding Conversion Manager.
status
TECManager is at it's second release, version 0.2. It now supports Python text encodings (replaces the built-in mac specific codecs and adds new ones), and its usage is pretty much transparent after the module has been imported.
examples
1 >> import TECManager as TM
2 >> # convert a macRoman bullet to a unicode bullet
3 >> '\xa5'.decode('mac_roman')
4 u'\u2022'
5 >> # convert a smHebrew HEBREW POINT QAMATS, alternate form "qamats qatan"
6 >> '\xde'.decode('mac_hebrew')
7 u'\u05b8\uf87f'
8 >> # create a new 'mac_turkish' encoding, which is a modified smRoman script.
9 >> TM.tec_codecs.createModule('encodings.mac_turkish', TM.getTextEncoding(script=TM.smRoman, language=TM.langTurkish, region=TM.verTurkey))
10 >> '\xa5'.decode('mac_turkish')
11 u'\u2022'
links
https://undefined.org/python/#TECManager
EditText (last edited 2007-02-13 03:46:49 by SkipMontanaro)
DeleteCache (cached 2007-10-29 01:52:19)- Login
- Navigation
- Actions
- Your recent pages