Hi all,
Prompted by this weekend's discussion of input regimes, I took a look at the one for the Mac's Western encoding (initiated by Michel Bovani), and hopefully revised it to be nearly complete for characters (missing four in the range 128-255). Mac users might like to take a look at this file, and verify that it does what I suggest.
Usage: put the attached regi-mac.tex in your path, and either rebuild your format files (i.e., texexec --make ...), or explicitly \input this file in your source. Add the line "\enableregime[mac]" to your source. Type søme tèxt with «aççents» ånd öther odd characters.
Does it work?
Adam
Adam T. Lindsay wrote on Mon, 24 Feb 2003:
AL> Prompted by this weekend's discussion of input regimes, I took a AL> look at the one for the Mac's Western encoding (initiated by Michel AL> Bovani), and hopefully revised it to be nearly complete for AL> characters (missing four in the range 128-255). Mac users might like AL> to take a look at this file, and verify that it does what I suggest.
Some symbols still can be added to this input regime definition:
character 187 (ordfeminine) can be defined as \ordfeminine character 188 (ordmasculine) can be defined as \ordmasculine character 202 (no-break space) can be defined as \nonbreakablespace
And some definitions can be changed:
character 163 can be defined as \textsterling instead of \sterling character 192 can be defined as \questiondown instead of ?` (ligature ?` doesn't always work). character 193 can be defined as \exclamdown instead of !` (ligature !` doesn't always work). character 214 can be defined as \textdiv instead of \mathematics\div character 182 can be defined as \mathematics\partial instead of \mathematics\delta (this character is described as: 0xB6 partialdiff 0x2202 PARTIAL DIFFERENTIAL in the Apple Computer's definition of Mac OS Roman character set, see the file ROMAN.TXT in the Public/MAPPINGS/VENDORS/APPLE directory of ftp.unicode.org . Symbol 'delta' can be found in Mac Symbol and Mac Greek encodings).
I corrected Adam T. Lindsay's regi-mac.tex file (see the attachment). Also I changed input characters to their codes -- it seems to be more reliable.
Victor Figurnov
At 04:30 PM 2/25/2003 +0300, Victor Figurnov wrote:
I corrected Adam T. Lindsay's regi-mac.tex file (see the attachment). Also I changed input characters to their codes -- it seems to be more reliable.
ok, patched, \showregime[mac] now looks pretty complete
Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Thanks Victor, Hans...
I was conservative (and lazy) with the changes on the regi-mac. Thank you, Victor, for filling in the gaps.
Cheers, adam
Hans Hagen said this at Tue, 11 Mar 2003 23:35:17 +0100:
At 04:30 PM 2/25/2003 +0300, Victor Figurnov wrote:
I corrected Adam T. Lindsay's regi-mac.tex file (see the attachment). Also I changed input characters to their codes -- it seems to be more reliable.
ok, patched, \showregime[mac] now looks pretty complete
Hans
Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf
ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 11:06 AM 2/24/2003 +0000, you wrote:
Hi all,
Prompted by this weekend's discussion of input regimes, I took a look at the one for the Mac's Western encoding (initiated by Michel Bovani), and hopefully revised it to be nearly complete for characters (missing four in the range 128-255). Mac users might like to take a look at this file, and verify that it does what I suggest.
Usage: put the attached regi-mac.tex in your path, and either rebuild your format files (i.e., texexec --make ...), or explicitly \input this file in your source. Add the line "\enableregime[mac]" to your source. Type søme tèxt with «aççents» ånd öther odd characters.
I replaced the old regi-max by this one (minus the table)
Does it work?
dunno since i didn't put it on the mac yet (working on a pc now) -)
concerning the rgime table:
\starttext
\def\showregime {\dosingleempty\doshowregime}
\def\doshowregime[#1]% {\bgroup \iffirstargument\enableregime[#1]\fi \starttabulate[|l|l|l|] \dostepwiserecurse{128}{255}{1} {\expanded {\scantokens {\NC \recurselevel \NC \rawcharacter\recurselevel \NC \noexpand\tttf \noexpand\meaning \rawcharacter\recurselevel \NC \NR}}}% \stoptabulate \unskip \egroup}
\showregime[mac]
\stoptext
I've added this macro to context (enco-run, i.e. a runtime macro) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------