NISUS Archives

June 2010

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:
Tue, 15 Jun 2010 00:51:20 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
On Jun 14, 2010, at 5:36 AM, Barbara Nostrand wrote:

> I'm trying to write a macro which will substitute fonts for selected sections of text. I have written a search which correctly finds text sections that I want to tweak. What is the easiest way to tell Nisus in a macro to change the font of the selected text?

Just put the font name, e.g.

	Hiragino Mincho Pro

or its full menu path

	:Format:Font:Hiragino Mincho Pro

or the full menu path together with Menu command

	Menu ':Format:Font:Hiragino Mincho Pro'

Alternatively, you can use 

	Set Font Name 'Hiragino Mincho Pro'

All those commands apply Hiragino Mincho Pro on selected texts.

> What am I doing? I am trying to set up the English text body in Adobe Caslon Pro with Japanese text in Hiragino Mincho Pro.

You can reverse the selections using ':Edit:Select:Invert Selection'. So, if your document consists solely of English and Japanese, the following will do the job (I don't know if the find expression fits your way of writing Japanese).

Find All '[\x{2460}-\x{27FF}\x{3000}-\x{30FF}\x{3220}-\x{33FE}\x{FF01}-\x{FF9F}\p{Han}]+|[\x{2014}\x{2015}\x{2026}]{2}', 'E-i'
Hiragino Mincho Pro
Invert Selection
Adobe Caslon Pro


Kino

ATOM RSS1 RSS2