<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Apply character styling to part of paragraph</title>
    <link>https://forums.adobe.com/community/indesign/indesign_scripting?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 24 Oct 2013 13:57:23 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-10-24T13:57:23Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5784986?tstart=0#5784986</link>
      <description>&lt;!-- [DocumentBodyStart:58a8ef13-944b-48b9-a9d2-21a2d6eb7432] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thank you! Using findGrep was a technique that never crossed my mind but worked well!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:58a8ef13-944b-48b9-a9d2-21a2d6eb7432] --&gt;&lt;img src='/beacon?t=1415905877584' /&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:57:23 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5784986?tstart=0#5784986</guid>
      <dc:date>2013-10-24T13:57:23Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5784941?tstart=0#5784941</link>
      <description>&lt;!-- [DocumentBodyStart:710550dd-8e58-4999-a9cc-6ef0b8ca769e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Dan-BTP wrote:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 14px;"&gt;... the point size and leading can be different on every page... &lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Are you able to find any rule of these differences?&lt;/p&gt;&lt;p&gt;...&lt;/p&gt;&lt;p&gt;what to do depends on what kind of rule could be defined&lt;/p&gt;&lt;p&gt;...&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;&lt;span style="font-size: 14px;"&gt;The point size of the reference is 1.5 pt. smaller than the point size of the paragraph, whatever that is.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Near to the end of script you can code for e&lt;span style="font-size: 14px;"&gt;xample:&lt;/span&gt;&lt;/p&gt;&lt;!--[CodeBlockStart:c0d98031-0949-48ed-9be9-0679f63855b2][excluded]--&gt;&lt;pre class="java" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your target is "reference" which is a text inbetween tabulator and end of story (or other criteria). 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So you could define:
app.findGrepPreferences = null;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // just for clear it
app.findGrepPreferences.findWhat = "(?&amp;lt;=\\t).+\\s\\Z";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to catch text following tab in last para of story
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and after:
mFound = app.activeDocument.findGrep();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so all desired text objects are in an array "mFound".
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you could iterate (backward) through it:
len = mFound.length;
while (len--&amp;gt;0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;gt;0" in case of nothing found
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mFound[len].pointSize -= 1.5;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whatever that is - is 1.5 smaller
&lt;/pre&gt;&lt;!--[CodeBlockEnd:c0d98031-0949-48ed-9be9-0679f63855b2]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jarek&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:710550dd-8e58-4999-a9cc-6ef0b8ca769e] --&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:04:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5784941?tstart=0#5784941</guid>
      <dc:date>2013-10-24T13:04:00Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5784747?tstart=0#5784747</link>
      <description>&lt;!-- [DocumentBodyStart:60ea2104-3f4d-45d0-9737-0ca9dc4daf92] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thank you for your response.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My InDesign document has 365 pages. In my script, I am creating each of these pages and adding one text frame to each page. In the story for each text frame, I am adding paragraphs of text that I am reading from text files.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have Verse and Poem paragraph styles defined, which I want to apply to the paragraphs on each page. However, the point size and leading can be different on every page. So those two properties I have to override for each paragraph on each page.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Furthermore, within each of the Verse paragraphs, there is some text that I call a reference. The point size of the reference is 1.5 pt. smaller than the point size of the paragraph, whatever that is. So I can't apply the reference point size as a character style, since it too changes on each page.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope I am describing my situation clearly enough so that you can help me fix my script to accomplish what I need. Thank you!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:60ea2104-3f4d-45d0-9737-0ca9dc4daf92] --&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:15:44 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5784747?tstart=0#5784747</guid>
      <dc:date>2013-10-24T12:15:44Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5784515?tstart=0#5784515</link>
      <description>&lt;!-- [DocumentBodyStart:07d72abb-6838-4111-aafe-7053ad1a33a4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hmm...,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It looks like a part of code (some variables not defined)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Script creates a new para and charStyle but as "virtual" objects. If the goal is to apply them to ID document texts ==&amp;gt; use (i.e) :&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:fb25c3f2-88a8-45f2-95f5-227c574b0a1d][excluded]--&gt;&lt;pre class="java" name="code"&gt;messagePgfStyle = app.activeDocument.paragraphStyles.add(messagePgfStyle);
&lt;/pre&gt;&lt;!--[CodeBlockEnd:fb25c3f2-88a8-45f2-95f5-227c574b0a1d]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But why to do it?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Your doc has styles "Poem" and "Verse" defined already, right?&lt;/p&gt;&lt;p&gt;If your goal is to apply one of them to the last paragraph of story ==&amp;gt; do it after if...else statement.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:cc8343d3-ab5b-4476-a14d-bb3f63d5eaf2][excluded]--&gt;&lt;pre class="java" name="code"&gt;story.paragraphs[-1].applyParagraphStyle(app.activeDocument.paragraphStyles.item(pgfStyleName));
&lt;/pre&gt;&lt;!--[CodeBlockEnd:cc8343d3-ab5b-4476-a14d-bb3f63d5eaf2]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If your goal is to modify last para properties after that (style definition stay untouched) ==&amp;gt; do it assigning new values to last para of story (not to a style):&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:4779a5a1-e974-4979-984b-febd791907fa][excluded]--&gt;&lt;pre class="java" name="code"&gt;story.paragraphs[-1].leading = pgfPointSize + lineSpacing;
&lt;/pre&gt;&lt;!--[CodeBlockEnd:4779a5a1-e974-4979-984b-febd791907fa]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In case of modifying contents at the end ==&amp;gt; char style should be added to your doc (i.e.):&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:116fe7b3-c02b-456c-956a-456b204f6520][excluded]--&gt;&lt;pre class="java" name="code"&gt;refCharStyle = app.activeDocument.characterStyles.add({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "refCharStyle",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointSize: (pgfPointSize - 1.5) + "pt"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&lt;/pre&gt;&lt;!--[CodeBlockEnd:116fe7b3-c02b-456c-956a-456b204f6520]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jarek&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:07d72abb-6838-4111-aafe-7053ad1a33a4] --&gt;</description>
      <pubDate>Thu, 24 Oct 2013 09:04:25 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5784515?tstart=0#5784515</guid>
      <dc:date>2013-10-24T09:04:25Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5784105?tstart=0#5784105</link>
      <description>&lt;!-- [DocumentBodyStart:67c6a6d7-9e73-4402-ab0b-ed2fa85ef1f4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thank you! That is definitely a big help. Now I am having trouble applying the paragraph style at the beginning so that the character style for the last part of the text overrides the paragraph style. Here is my code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;if (currentPgfType == "verse") {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pgfStyleName = "Verse";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;else {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pgfStyleName = "Poem";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;pgfPointSize = intPointSize/10.0;&lt;/p&gt;&lt;p&gt;pgfLeading = pgfPointSize + lineSpacing;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;messagePgfStyle = new ParagraphStyle();&lt;/p&gt;&lt;p&gt;messagePgfStyle.name = pgfStyleName;&lt;/p&gt;&lt;p&gt;messagePgfStyle.leading = pgfLeading + "pt";&lt;/p&gt;&lt;p&gt;messagePgfStyle.pointSize = pgfPointSize + "pt";&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;refCharStyle = new CharacterStyle();&lt;/p&gt;&lt;p&gt;refCharStyle.pointSize = (pgfPointSize - 1.5) + "pt";&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].applyParagraphStyle(messagePgfStyle);&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents = pgfStr;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;if (currentPgfType == "verse") {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].contents = "\t";&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].applyCharacterStyle(refCharStyle);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].contents = refStr;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].applyCharacterStyle(basicCharStyle);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents = "\r";&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It tells me that messagePgfStyle on the applyParagraphStyle statement is nothing. What am I doing wrong in defining and assigning the paragraph style?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again for your help!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dan&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:67c6a6d7-9e73-4402-ab0b-ed2fa85ef1f4] --&gt;</description>
      <pubDate>Thu, 24 Oct 2013 02:48:06 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5784105?tstart=0#5784105</guid>
      <dc:date>2013-10-24T02:48:06Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5783701?tstart=0#5783701</link>
      <description>&lt;!-- [DocumentBodyStart:904b0937-45d9-4dd9-bd29-934aef0abf55] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1st at all - you can not use "+=" operand since your insertionPoints[-1].contents is probably undefined initially. This will return an error "undefined is not an object". You can use "=" or "story.contents += "&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2nd - you are able to apply charStyle to any text object &lt;/p&gt;&lt;p&gt;(not to a string which is a text's object contents ==&amp;gt; separate text property in fact)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So you can name/match somehow this part of text which should be a target.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But the easiest way is to apply desired charStyle to&lt;strong&gt; story.insertionPoints[-1]&lt;/strong&gt; before adding contents.&lt;/p&gt;&lt;p&gt;This object properties will be parent to all new one created while adding. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So let assume you have a specific charStyle named &lt;span style="font-size: 14px;"&gt;&lt;strong&gt;mCharStyle&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;and &lt;strong&gt;mBasic &lt;/strong&gt;= app.activeDocument.characterStyles.item(0) // "None";&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Your code could look like:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:dd286b1e-aa0c-42a4-971d-5c5f5dc60ae4][excluded]--&gt;&lt;pre class="java" name="code"&gt;story.insertionPoints[-1].contents = pgfStr;
story.insertionPoints[-1].contents = "\t";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].applyCharacterStyle(mCharStyle);
story.insertionPoints[-1].contents = refStr;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; story.insertionPoints[-1].applyCharacterStyle(mBasic);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // back to "None"
story.insertionPoints[-1].contents = "\r";
&lt;/pre&gt;&lt;!--[CodeBlockEnd:dd286b1e-aa0c-42a4-971d-5c5f5dc60ae4]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jarek&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:904b0937-45d9-4dd9-bd29-934aef0abf55] --&gt;</description>
      <pubDate>Wed, 23 Oct 2013 22:29:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5783701?tstart=0#5783701</guid>
      <dc:date>2013-10-23T22:29:35Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Apply character styling to part of paragraph</title>
      <link>https://forums.adobe.com/message/5783369?tstart=0#5783369</link>
      <description>&lt;!-- [DocumentBodyStart:552174f0-37f9-4d9c-a951-7c20333342f7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am inserting text in a text frame with the following code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents += pgfStr;&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents += "\t";&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents += refStr;&lt;/p&gt;&lt;p&gt;story.insertionPoints[-1].contents += "\r";&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to apply character styling to all the text in refStr (just that part of this paragraph). I know how to apply paragraph syling to the entire paragraph, but not character styling. I would appreciate help. Thanks!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:552174f0-37f9-4d9c-a951-7c20333342f7] --&gt;</description>
      <pubDate>Wed, 23 Oct 2013 20:11:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5783369?tstart=0#5783369</guid>
      <dc:date>2013-10-23T20:11:53Z</dc:date>
      <clearspace:dateToText>1 year 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

