Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Change default font Comment

So I need to add comments to my pages document but the default font for anything added to a comments note is Lucida Grande 9.0 pt...


If I want to change that to something smaller and more space efficient then I have to change it in...every...single...note...


There is a post about how to change this directly in the XML file within the Pages package bundle itself, but I'm guessing this was for iWork 08 because I don't recognise anything once I'm in there...


Any clues...


Many thanks


Drew🙂

Posted on Apr 30, 2011 11:03 PM

Reply
17 replies

May 1, 2011 5:35 AM in response to PigeonCake

The descriptor of comments isn't available in the delivered templates. I guess that it's built from resources embedded in one of the .nib files embedded in the application's package.

At this time, I have no way to create a default setting.

It seems that the app create a new standard descriptor from scratch if the already existing one isn't the standard one.

Save your document with its standard comments.

Open the index.xml file.

Searching in it, you will get the descriptor of the style used by default for comments.

it must be resembling to :


User uploaded file

It's easy to change the font name or the font size or both if you want.


When it's done, save the edited index.xml. If there is an index.xml.gz file, rename it as backup_index.xml.gz

Then, open the document to check that the changes really apply.

If it's OK, save the document.

the old backup_index.xml.gz file will be deleted.

Same thing for the edited index.xml which will be replaced by its packed version index.xml.gz


Yvan KOENIG (VALLAURIS, France) dimanche 1 mai 2011 14:14:26


Please :

Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

May 8, 2011 3:01 AM in response to Scott Campbell5

I retrieved an old script which may help.


It was designed to change the default font but it may be used to changee the one used in comments.

Here is the script, I give some explanations just after the code.


--{code}

--[SCRIPT set_iWork_default_font]

(*

Si vous choisissez "Pages" vous verrez:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_Helvetica-Bold" = "Helvetica-Bold";

"FONT_Helvetica-Oblique" = "Helvetica-Oblique";

"FONT_LucidaGrande" = "LucidaGrande";


La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_Helvetica"


éditez la ligne correspondante comme suit:


"FONT_Helvetica" = "_nomDeVotrePolice_";


Par exemple, pour utiliser Palatino, remplacez _nomDeVotrePolice_ par "Palatino-Roman"

Enregistrez le fichier ainsi modifié par (cmd + S)


Si vous choisissez "Numbers" vous verrez:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_HelveticaNeue" = "HelveticaNeue";

"FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";


La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_HelveticaNeue"


éditez la ligne correspondante comme suit:


"FONT_HelveticaNeue" = "_nomDeVotrePolice_";


Si vous choisissez "Keynote" vous verrez:


"STYLE_Series_2" = "Series_2";

"STYLE_None" = "Aucun";

"STYLE_Series_5" = "Series_5";

"STYLE_Series_3" = "Series_3";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_Helvetica" = "Helvetica";

"STYLE_Free Form" = "Format libre";

"STYLE_Series_1" = "Series_1";

"FONT_GillSans" = "GillSans";

"STYLE_Normal" = "Normal";

"STYLE_Series_0" = "Series_0";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";

"STYLE_Series_4" = "Series_4";


La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_GillSans"


éditez la ligne correspondante comme suit:


"FONT_GillSans" = "_nomDeVotrePolice_";


Une liste de 564 noms de polices est disponible sur mon iDisk:

<http://idisk.me.com/koenigyvan-Public?view=web>

Téléchargez:

For_iWork:des_polices.numbers.zip


********************


If you choose "Pages" you will see:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_Helvetica-Bold" = "Helvetica-Bold";

"FONT_Helvetica-Oblique" = "Helvetica-Oblique";

"FONT_LucidaGrande" = "LucidaGrande";


The font used as default for tables is the one whose descriptor is "FONT_Helvetica"


edit the line as:


"FONT_Helvetica" = "_yourFontName_";


For instance, to use Palatino, replace "_yourFontName_" by "Palatino-Roman"

Save the file (cmd + S)


If you choose "Numbers" you will see:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_HelveticaNeue" = "HelveticaNeue";

"FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";


The font used as default for tables is the one whose descriptor is "FONT_HelveticaNeue"


edit the line as:


"FONT_HelveticaNeue" = "_yourFontName_";


If you choose "Keynote" you will see:


"STYLE_Series_2" = "Series_2";

"STYLE_None" = "Aucun";

"STYLE_Series_5" = "Series_5";

"STYLE_Series_3" = "Series_3";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_Helvetica" = "Helvetica";

"STYLE_Free Form" = "Format libre";

"STYLE_Series_1" = "Series_1";

"FONT_GillSans" = "GillSans";

"STYLE_Normal" = "Normal";

"STYLE_Series_0" = "Series_0";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";

"STYLE_Series_4" = "Series_4";


The font used as default for tables is the one whose descriptor is "FONT_GillSans"


edit the line as:


"FONT_GillSans" = "_yourFontName_";


A list of 564 names is available on my iDisk:

<http://idisk.me.com/koenigyvan-Public?view=web>

Download:

For_iWork:des_polices.numbers.zip


Yvan KOENIG (Vallauris, FRANCE)

5 mars 2009

2009/08/31 added treatment of flatfiles.

*)


onrun


ifmyparleFrancais()then


setprompt1to"Choisir l'application"


setprompt2to"Choisir un modèle"


setprompt3to"Choisir une localisation"


else


setprompt1to"Choose the application"


setprompt2to"Choose a template"


setprompt3to"Choose a localization"


endif


(*

choose the application *)


settheApptochoose from list{"Pages","Numbers","Keynote"}with promptprompt1


iftheAppisfalsethenerror-128


settheApptoitem1oftheApp


(*

define some parameters *)


iftheAppis"Pages"then


setpermittedto{"com.apple.iWork.Pages.template","com.apple.iWork.Pages.sfftemplate"}


setsubto"Templates"


settheStringsto"Localizable.strings"


elseiftheAppis"Numbers"then


setpermittedto{"com.apple.iWork.Numbers.template","com.apple.iWork.Numbers.sfftemplate"}


setsubto"Templates"


settheStringsto"Localizable.strings"


else(* it is "Keynote" *)


setpermittedto{"com.apple.iWork.Keynote.kth","com.apple.iWork.Keynote.sffkth"}


setsubto"Themes"


settheStringsto"fontsAndText.strings"


endif


(*

choose the template *)


setp2fto(path toapplications folderastext)&"iWork '09:"&theApp&".app:Contents:Resources:"&sub


if5>(system attribute"sys2")then(*

it's Mac OS X 10.4.11 *)


setallowedtopermitted


else(*

it's Mac OS X 10.5.6 with a bug with Choose File *)


setallowedto{}


endif


setp2fto(choose filewith promptprompt2default location(p2fasalias)of typeallowed)astext


ifp2fdoes notendwith":"thensetp2ftop2f&":"(* ADDED *)


(*

choose the localization folder *)


setp2ftop2f&"Contents:Resources"


setp2fto(choose folderdefault location(p2fasalias)with promptprompt3)astext


(*

open the localizable.strings file *)


tellapplication"Finder"


setnbtocountof(filesoffolderp2fwhosenamestarts with"localizable")


ifnb=1thenduplicatefiletheStringsoffolderp2f(* as there is no backup, duplicate "localizable.strings" for safe *)


endtell-- Finder


tellapplication"TextEdit"


openfile(p2f&theStrings)


endtell


endrun


--=====


onparleFrancais()(* Check if Pages is running in French *)


localz


try


tellapplication"Pages"tosetztolocalized string"Cancel"


onerror


setzto"Cancel"


endtry


return(z="Annuler")

endparleFrancais


--=====


--[/SCRIPT]

--{code}


Run the script.

It will ask you to select the app

the template

the localized version


Then it open the relevant resource in TextEdit.


You will see the line :

"FONT_LucidaGrande" = "LucidaGrande";

Edit it as :

"FONT_LucidaGrande" = "here_put_the_name_of_a_font_which_may_be_used_in_italic";


Save the file

That's all folks.


Here is a list of such fonts. Some are delivered with the operating system, some are installed with iWork, some are borrowed from trial versions of Adobe inDesign or Mer…Soft Office.


ACaslonPro-Regular

AGaramondPro-Regular

AppleGaramond-Book

ArialMT

ArnoPro-Regular

Baskerville

BernhardModernStd-Roman

BitstreamVeraSans-Roman

BitstreamVeraSerif-Roman

BodoniSvtyTwoITCTT-Book

BodoniSvtyTwoOSITCTT-Book

BodoniSvtyTwoSCITCTT-Book

Bookman-Demi

Bookman-Light

BRADDON

BRODY

CAMPBELL

CaslonAntique

CenturyGothic

ChaparralPro-Regular

Cochin

Courier

CourierNewPSMT

CourierStd

Didot

EuphemiaUCAS

FIRSTHOME

Futura-Medium

GaramondPremrPro

Georgia

GillSans

Helvetica

HelveticaNeue

HoeflerText-Regular

HUNTSON

IRIS

KENDRIC

LetterGothicStd

LYNN

MAXIMO

MinionPro-Regular

Mshtakan

Myriad

MyriadPro-Regular

NewPeninimMT

NewsGothicStd

NuevaStd-Regular

Optima-Regular

Palatino-Roman

PrestigeEliteStd

Times-Roman

TimesNewRomanPSMT

TrebuchetMS

Verdana

WarnockPro-Regular


After that, when you will create a document from the edited template, comments will be crated with the new font so, you will be able to apply italic to all or part of the comment.


Yvan KOENIG (VALLAURIS, France) 8 mai 2011 12:01:29

May 8, 2011 4:05 AM in response to PigeonCake

You really don't need to become a scripting guru if you don't want to.


Simply use the Paragraph Styles that are there and modify what you don't like.

User uploaded file


Select your comments and change font, style, color, weight, size, etc whatever, and highlight that. See what style Pages is using (it will be highlighted in the Drawer) and click on the little red triangle to the right of it and choose your option to redefine, create new or whatever. If you use this document template frequently, simply do a Save as Template from the File Menu and voila there you have it.

User uploaded file


It really is a simple process.

May 8, 2011 8:30 AM in response to michaelfromrochester

Ther is no need to be an AppleScript guru to use a script.

I'm quite sure that you aren't an Objective-C guru but you are running pieces of code written with it for everything which you do with your macintosh.


What's interesting with my scheme is that you edit the template only once.

Then, every document created from this one will use the new font in comments.

It's exactly what the OP asked for.

With your scheme, he will get comments using Lucida Grande and will must apply a style to every new comment.


Yvan KOENIG (VALLAURIS, France) 8 mai 2011 17:27:05

May 8, 2011 9:46 AM in response to fruhulda

I'm trying to change the default font, I can already change the font on notes individually, but I want to put them in Helbetica Neue Light 7 point. I have a lot of notes.


KOENIG Yvan

VALLAURIS (France)

I'll have to have a look at the code above when I'm on my Mac but I have a feeling I'm not going to be able to keep up with that. However I'll message you if I run into a hurdle because Lucida Grande is driving me nuts.


Many, many thanks for the hard work on this reply.


What a shame setting up a new template doesn't change the default comments font.

May 8, 2011 10:00 AM in response to PigeonCake

You don't have to change the script contents, just run it.


It will ask you which app must be treated : Pages

It will ask you which in_the_box template must be edited : Blank.template (it's my default one)

It will ask you which localized version must be edited. I select fr.lproj (for French) for English it's en.lproj


For Blank.template in English, you will get :

User uploaded file

Replace the highlighted LucidaGrande by HelveticaNeue

Then press cmd + S

The next document created with this template will use HelveticaNeue in Comments.

I apologize but I found no way to define the default font size.


Yvan KOENIG (VALLAURIS, France) 8 mai 2011 19:00:36

Feb 12, 2012 2:12 AM in response to drakefromca

I apologize but I don't know what to add.


(1) In my message dated 8 mai 2011 12:01, in the script itself, everybody may read :


If you choose "Pages" you will see:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_Helvetica-Bold" = "Helvetica-Bold";

"FONT_Helvetica-Oblique" = "Helvetica-Oblique";

"FONT_LucidaGrande" = "LucidaGrande";


The font used as default for tables is the one whose descriptor is "FONT_Helvetica"


edit the line as:


"FONT_Helvetica" = "_yourFontName_";


For instance, to use Palatino, replace "_yourFontName_" by "Palatino-Roman"

Save the file (cmd + S)


If you choose "Numbers" you will see:


/* ----- Font Names */

"FONT_Helvetica" = "Helvetica";

"FONT_HelveticaNeue" = "HelveticaNeue";

"FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";


The font used as default for tables is the one whose descriptor is "FONT_HelveticaNeue"


edit the line as:


"FONT_HelveticaNeue" = "_yourFontName_";


If you choose "Keynote" you will see:


"STYLE_Series_2" = "Series_2";

"STYLE_None" = "Aucun";

"STYLE_Series_5" = "Series_5";

"STYLE_Series_3" = "Series_3";

"FONT_LucidaGrande" = "LucidaGrande";

"FONT_Helvetica" = "Helvetica";

"STYLE_Free Form" = "Format libre";

"STYLE_Series_1" = "Series_1";

"FONT_GillSans" = "GillSans";

"STYLE_Normal" = "Normal";

"STYLE_Series_0" = "Series_0";

"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";

"STYLE_Series_4" = "Series_4";


The font used as default for tables is the one whose descriptor is "FONT_GillSans"


edit the line as:


"FONT_GillSans" = "_yourFontName_";


A list of 564 names is available on my iDisk:

<http://idisk.me.com/koenigyvan-Public?view=web>

Download:

For_iWork:des_polices.numbers.zip


(2) In my message dated : 8 mai 2011 19:00 I gave complementary details.


I may write the needed infos but I'm unable to read them carefully for you.


Yvan KOENIG (VALLAURIS, France) dimanche 12 février 2012

iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3

My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

Change default font Comment

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.