FindChangeList.txt--Change font style


indesign cs3

 

here's problem:

 

i have 2 basic paragraph styles:

 

body text--minion pro regular

 

margin text--formata light

 

i format word file paragraph style used (body text--minion pro regular). proceed change base style other styles used in document (headlines, subheads, ...). problem when change paragraph styles--body text margin text--the conversion doesn't use fonts use in margins.

 

wrong results

minion pro regular--formata regular

minion pro italic--formata italic

minion pro bold--formata bold

 

right results

minion pro regular--formata light

minion pro italic--formata light italic

minion pro bold--formata medium

 

the fonts use in margin of our book lighter-weight font our main text font. indesign change:

 

regular light--this change works since light defining style

italic light italic

bold medium

 

i know nothing--very little--about applescipts. i'm trying alter supporting findchangelist.txt file.

 

here's removed end of file:

 

grep    {find what:"  +"}    {change to:" "}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find double spaces , replace single spaces.
grep    {find what:"\r "}    {change to:"\r"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find returns followed space , replace single returns.
grep    {find what:" \r"}    {change to:"\r"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find returns followed space , replace single returns.
grep    {find what:"\t\t+"}    {change to:"\t"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find double tab characters , replace single tab characters.
grep    {find what:"\r\t"}    {change to:"\r"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find returns followed tab character , replace single returns.
grep    {find what:"\t\r"}    {change to:"\r"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find returns followed tab character , replace single returns.
grep    {find what:"\r\r+"}    {change to:"\r"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find double returns , replace single returns.
text    {find what:" - "}    {change to:"^="}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find space-dash-space , replace en dash.
text    {find what:"--"}    {change to:"^_"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    find dash-dash , replace em dash.

 

 

 

here's replacement:

 

text    {find what:"", applied font:"formata", font style:"italic"}    {change to:"", applied font:"formata", font style:"light italic"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    change formata italic formata light italic.
text    {find what:"", applied font:"formata", font style:"bold"}    {change to:"", applied font:"formata", font style:"medium"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    change formata bold formata medium.
text    {find what:"", applied font:"formata", font style:"regular"}    {change to:"", applied font:"formata", font style:"light"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    change formata regular formata light.

 

this not total failure. italic changed light italic stops. doesn't make other 2 changes.

 

any in making things totally work appreciated. thanks.

hi there,

 

not sure if help, found these 2 'change font' scripts, might able edit fit needs:

 

1. change fonts throughout document:

 

#target indesign;

app.findtextpreferences = app.changetextpreferences = null;
app.findchangetextoptions.includefootnotes = true;
app.findchangetextoptions.includehiddenlayers = true;
app.findchangetextoptions.includemasterpages = true;
app.findtextpreferences.appliedfont = "gill alt 1 mt\tregular";
app.changetextpreferences.appliedfont = "arial\tregular";
app.documents[0].changetext();

app.findtextpreferences.appliedfont = "gill alt 1 mt\tbold";
app.changetextpreferences.appliedfont = "arial\tbold";
app.documents[0].changetext();

app.findtextpreferences.appliedfont = "gill alt 1 mt\titalic";
app.changetextpreferences.appliedfont = "arial\titalic";
app.documents[0].changetext();

 

2. change fonts in paragraph styles:

 

for (var i=2; i<app.activedocument.paragraphstyles.length; i++)
{

  if (app.activedocument.paragraphstyles[i].appliedfont.fullname == "gill alt 1 mt")

    app.activedocument.paragraphstyles[i].appliedfont = "arial\tregular";

  if (app.activedocument.paragraphstyles[i].appliedfont.fullname == "gill alt 1 mt italic")

    app.activedocument.paragraphstyles[i].appliedfont = "arial\titalic";

  if (app.activedocument.paragraphstyles[i].appliedfont.fullname == "gill alt 1 mt bold")

    app.activedocument.paragraphstyles[i].appliedfont = "arial\tbold";

}

 

hope helps,

 

peace!



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts