Discussion:
Seeking Mac font to display HP50 strings
(too old to reply)
o***@mindspring.com
2018-09-26 15:18:21 UTC
Permalink
I'm using an iPhone app, Emu48 a.k.a. HP50g (by TheWinterStorm). I can copy files from the emulator to my Mac laptop via the built-in WLAN support, but many characters display wrong glyphs. Is there a Mac font that will display these (preferably a TTF font)? I believe I used to have one, but that was several computers ago and I can't find it.
Irl in Concord
Bruce Horrocks
2018-09-26 21:40:18 UTC
Permalink
Post by o***@mindspring.com
I'm using an iPhone app, Emu48 a.k.a. HP50g (by TheWinterStorm). I can copy files from the emulator to my Mac laptop via the built-in WLAN support, but many characters display wrong glyphs. Is there a Mac font that will display these (preferably a TTF font)? I believe I used to have one, but that was several computers ago and I can't find it.
Irl in Concord
These maybe?
<https://www.hpcalc.org/details/3243>
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)
o***@mindspring.com
2018-09-27 11:14:28 UTC
Permalink
Post by Bruce Horrocks
Post by o***@mindspring.com
I'm using an iPhone app, Emu48 a.k.a. HP50g (by TheWinterStorm). I can copy files from the emulator to my Mac laptop via the built-in WLAN support, but many characters display wrong glyphs. Is there a Mac font that will display these (preferably a TTF font)? I believe I used to have one, but that was several computers ago and I can't find it.
Irl in Concord
These maybe?
<https://www.hpcalc.org/details/3243>
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)
Thanks! That's a start, at least. Many of the special characters now show up correctly. Some don't yet, e.g., the right arrow (character 141) is just a box. On my Mac I have to use (using BBEdit) the "Western (Windows Latin 1)" encoding. I've just started trying to get this to work so I may make more progress after more thought. Worst case I can run the character string through a character remapping program in MATLAB.
Irl Smith (opticsmith at mindspring dot com)
Concord MA
j***@gmail.com
2018-09-28 15:27:48 UTC
Permalink
Post by o***@mindspring.com
Post by Bruce Horrocks
Post by o***@mindspring.com
I'm using an iPhone app, Emu48 a.k.a. HP50g (by TheWinterStorm). I can copy files from the emulator to my Mac laptop via the built-in WLAN support, but many characters display wrong glyphs. Is there a Mac font that will display these (preferably a TTF font)? I believe I used to have one, but that was several computers ago and I can't find it.
Irl in Concord
These maybe?
<https://www.hpcalc.org/details/3243>
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)
Thanks! That's a start, at least. Many of the special characters now show up correctly. Some don't yet, e.g., the right arrow (character 141) is just a box. On my Mac I have to use (using BBEdit) the "Western (Windows Latin 1)" encoding. I've just started trying to get this to work so I may make more progress after more thought. Worst case I can run the character string through a character remapping program in MATLAB.
Irl Smith (opticsmith at mindspring dot com)
Concord MA
Try using UTF-8 encoding instead.
o***@mindspring.com
2018-09-28 16:25:59 UTC
Permalink
Post by j***@gmail.com
Post by o***@mindspring.com
Post by Bruce Horrocks
Post by o***@mindspring.com
I'm using an iPhone app, Emu48 a.k.a. HP50g (by TheWinterStorm). I can copy files from the emulator to my Mac laptop via the built-in WLAN support, but many characters display wrong glyphs. Is there a Mac font that will display these (preferably a TTF font)? I believe I used to have one, but that was several computers ago and I can't find it.
Irl in Concord
These maybe?
<https://www.hpcalc.org/details/3243>
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)
Thanks! That's a start, at least. Many of the special characters now show up correctly. Some don't yet, e.g., the right arrow (character 141) is just a box. On my Mac I have to use (using BBEdit) the "Western (Windows Latin 1)" encoding. I've just started trying to get this to work so I may make more progress after more thought. Worst case I can run the character string through a character remapping program in MATLAB.
Irl Smith (opticsmith at mindspring dot com)
Concord MA
Try using UTF-8 encoding instead.
I actually tried a bunch of encodings, including that one (which gives the message "The UTF-8 file “tidstr.txt” is damaged or incorrectly formed; please proceed with caution."). Here tidstr.txt is the result of using ->STR on a directory and then using the emulator's WLAN support to transfer it. I tried the following encodings (which were all that were available and not obviously useless such as Chinese):
Western (ISO Latin 1)
Western (ISO Latin 9)
Western (Mac OS Roman)
Western (Windows Latin 1)
I suspect that I need to actually do some kind of conversion similar to what is done by the Kermit or other serial servers, but do it all internal to the emulator, not while transmitting over a serial connection. Are you aware of any function to do this?
Bruce Horrocks
2018-09-30 10:46:48 UTC
Permalink
Post by o***@mindspring.com
Post by j***@gmail.com
Try using UTF-8 encoding instead.
I actually tried a bunch of encodings, including that one (which
gives the message "The UTF-8 file “tidstr.txt” is damaged or
incorrectly formed; please proceed with caution."). Here tidstr.txt
is the result of using ->STR on a directory and then using the
emulator's WLAN support to transfer it. I tried the following
encodings (which were all that were available and not obviously
useless such as Chinese): Western (ISO Latin 1) Western (ISO Latin
9) Western (Mac OS Roman) Western (Windows Latin 1) I suspect that I
need to actually do some kind of conversion similar to what is done
by the Kermit or other serial servers, but do it all internal to the
emulator, not while transmitting over a serial connection. Are you
aware of any function to do this?
UTF-8 isn't going to work because the calc doesn't support it. :-(

The 48/49/50 series use ISO-8859-1 encoding, the mapping for which is
shown in Appendix J of the Advanced User's Reference Manual.
<http://h10032.www1.hp.com/ctg/Manual/c02836298>

The presence of the emulator complicates things because the emulator may
well be UTF-8 compliant and /may/ do the conversion automatically when
you do a cut and paste etc. TBH I can't remember - its been a while
since I used it.

You can do your own conversion to Unicode/UTF-8 - there's a useful guide
here.
<http://www.drehersoft.com/mapping-hp48-text-to-unicode/>

As you note, the Kermit engine does convert the calc's internal
character set into a plain ASCII format using escape sequences. These
are also listed in appendix J, and the degree of translation is subject
to the IOPAR variable and the TRANSIO command.

The actual translation routine used by Kermit is not made available as a
userRPL command but can be accessed via a SYSEVAL. Unfortunately I can
only find programs for the 48 & 49. You'll need to find a table of
SYSEVAL mappings and see what the equivalent on the 50G is in order to
make use of these. (This is left as an exercise for the reader.) :-)
<https://groups.google.com/forum/#!msg/comp.sys.hp48/tJXI-NdnuHM/uGmz4j7M6VIJ>

HTH
--
Bruce Horrocks
Surrey
England
(bruce at scorecrow dot com)
Joe Horn
2018-10-03 03:20:49 UTC
Permalink
Post by Bruce Horrocks
The actual translation routine used by Kermit is not made available as a
userRPL command but can be accessed via a SYSEVAL. Unfortunately I can
only find programs for the 48 & 49. You'll need to find a table of
SYSEVAL mappings and see what the equivalent on the 50G is in order to
make use of these. (This is left as an exercise for the reader.) :-)
Here are two 50g programs that might do what you're looking for:

->TRAN (to TRANSIO trigraphs)
<< ->STR 3. TRANSIO #2F34Eh SYSEVAL >>
BYTES: 33.0 #F87Dh

TRAN-> (from TRANSIO trigraphs)
<< ->STR 3. TRANSIO #2F34Dh SYSEVAL DROP OBJ-> >>
BYTES: 38.0 #2558h

To use, put any object on the stack and execute ->TRAN. Its trigraph
representation is returned as a string. Execute TRAN-> on that string to
return it to the original object.

-Joe-
o***@mindspring.com
2018-10-03 19:08:22 UTC
Permalink
Post by Joe Horn
Post by Bruce Horrocks
The actual translation routine used by Kermit is not made available as a
userRPL command but can be accessed via a SYSEVAL. Unfortunately I can
only find programs for the 48 & 49. You'll need to find a table of
SYSEVAL mappings and see what the equivalent on the 50G is in order to
make use of these. (This is left as an exercise for the reader.) :-)
->TRAN (to TRANSIO trigraphs)
<< ->STR 3. TRANSIO #2F34Eh SYSEVAL >>
BYTES: 33.0 #F87Dh
TRAN-> (from TRANSIO trigraphs)
<< ->STR 3. TRANSIO #2F34Dh SYSEVAL DROP OBJ-> >>
BYTES: 38.0 #2558h
To use, put any object on the stack and execute ->TRAN. Its trigraph
representation is returned as a string. Execute TRAN-> on that string to
return it to the original object.
-Joe-
Thanks! Does the trick. It solves a slightly different problem than the one I was looking for, which would be a way to have a text file display in a text editor with single-glyph HP50 characters properly mapped, but this solution allows me to read and even edit the code.
Loading...