CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 19 Jul 2025 16:42:32 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110811043524
location: https://web.archive.org/web/20110811043524/https://wiki.python.org/moin/MacPython/TECManager
server-timing: captures_list;dur=0.621505, exclusion.robots;dur=0.028559, exclusion.robots.policy;dur=0.018408, esindex;dur=0.015398, cdx.remote;dur=32.551412, LoadShardBlock;dur=200.103640, PetaboxLoader3.datanode;dur=112.243873, PetaboxLoader3.resolve;dur=72.962299
x-app-server: wwwb-app201
x-ts: 302
x-tr: 258
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app201; 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: Sat, 19 Jul 2025 16:42:33 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 11 Aug 2011 04:35:24 GMT
x-archive-orig-server: Apache/2.2.16 (Debian)
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-set-cookie: MOIN_SESSION_80_ROOT_moin=32c02dae2ae277e3f141e0c10cc64f38052e3058; expires=Thu, 11-Aug-2011 05:35:00 GMT; Max-Age=3600; Path=/
x-archive-orig-content-length: 15922
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 11 Aug 2011 04:35: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="prev memento"; datetime="Sat, 08 Dec 2007 10:00:24 GMT", ; rel="memento"; datetime="Thu, 11 Aug 2011 04:35:24 GMT", ; rel="next memento"; datetime="Tue, 05 Jul 2022 22:28:16 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: WPO-20110811035811-crawl438/WPO-20110811043258-01495.warc.gz
server-timing: captures_list;dur=0.973924, exclusion.robots;dur=0.041718, exclusion.robots.policy;dur=0.023933, esindex;dur=0.027257, cdx.remote;dur=47.357884, LoadShardBlock;dur=138.446504, PetaboxLoader3.datanode;dur=88.386880, PetaboxLoader3.resolve;dur=313.938956, load_resource;dur=327.899448
x-app-server: wwwb-app201
x-ts: 200
x-tr: 568
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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
User
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
MacPython/TECManager (last edited 2008-11-15 14:01:18 by localhost)