Hi John,

What I meant and sent was what Sherm Pedley called a bullet, namely what is produced on a Mac when you type option-8. The unicode character is \x{2022}. On web pages it is •.

When I put "<p>bullet &#8226;</p> on a web page, open the page in Safari, copy the "bullet" from the page, and paste it into to a Mac Roman BBEdit text file, I see a bullet that is encoded in the file as A5. I can get the same bullet by typing option-8 in the text file.

I now realize that I was only seeing the CA "bullet" before because I was showing invisibles in BBEdit. Then the CA character looked like a faded bullet. Ordinarily it is invisible.

Regards,

Vic

P.S. I tried your script below. I haven't the slightest idea what the output means. As I said, a real web bullet is &#8226;.


At 8:37 PM +0000 1/11/04, John Delacour wrote:
At 1:52 pm -0500 11/1/04, Vic Norton wrote:

     # file0.pl - The data in "file0.pl" is a real bullet,
     #            namely A5. But the script "file0.pl" can't
     #            find it when run from BBEdit.

Vic, before I spend time testing this, what do you mean by "real bullet" namely A5. Do you mean that we are to replace "\x5" in the scripts you posted with Macintosh character "*" and save the scripts as Unix without the Encode as Unicode checked ? There are a lot of options and your instructions are far from unambiguous.


I get the feeling you have not yet visited the Unicode page I recommended.

As to BBEdit, it's important to realise that it does not speak Unicode. It uses an interpreter. What you see is not what you get. If the interpreter can't convert to mac it prints the raw UTF-8.

If you run this script from BBEdit you will see how "real" your bullet is.

#!/usr/bin/perl
no warnings ;
$f = "/tmp/vicsbullet.html" ; open F, ">$f" ;
print "\x{1F00}" ; print F "<html>\x{1F00}"; print chr 10 ; print F chr 13;
print "\xA5" ; print F "\xA5";
close F;
`open -a safari $f` ;




JD




Reply via email to