NISUS Archives

March 2019

NISUS@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Mon, 25 Mar 2019 19:03:04 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Hello Takamitsu,

You talk about “fonts” here. But don’t you perhaps mean “encodings”? After all if you want to change the font on some text, then you just change the font.

So I am assuming you are talking about legacy “fake-fonts”, i.e., fonts which display—usually the base-256 or “ASCII +”—characters with shapes inappropriate to their encoding value. If you want to change this kind of situation, you will need a table which maps the encoding values of the “fake font” to their proper encoding value in Unicode. Then you can store this table in a hash and use the macro command “.transliterateInRange” (there is also a newer “.transformInRangeWithICU” which may be useful for some cases, but probably not legacy fonts) to change any text in the relevant font. If this is the case you are looking for and you need help on how to do this, just let us know.

Cheers.
Philip


> On 2019 Mar 25, at 4:18, takamitsu Muraoka <[log in to unmask]> wrote:
> 
> Dear Nisus family
> 
> Can anyone tell me how to replace every character in font A in a file with the corresponding character in font B systematically and mechanically? I have multiple Hebrew or Greek fonts installed in my Mac.
> With thanks in advance, 
> Takamitsu MURAOKA
> 村岡崇光

Philip Spaelti
[log in to unmask]

ATOM RSS1 RSS2