How to effectively use Character Styles

Hello, I am fairly new to InDesign, but have an extensive background with FrameMaker. I am having trouble figuring out how to best use character styles in ID, because of the difference between it and FM.
Lets say I have two different body text styles, which use different fonts or different sizes, each of which is saved as a paragraph style.
In Framemaker, when you go into the Character Style editor, for each value you can select the value "As Is". So if I want to make a Bold character style, I leave the font and size attributes set to "As Is" and I change only the weight attribute to Bold.
Now, I can select either Body Text 1 or Body Text 2 for the paragraph style and if I want to bold a word, I just highlight that word and select the Bold character style. The text is bolded but everything else that is unique to that paragraph style remains. If I ever need to unbold the word, I can just select it and then select No Style from the Character Style catalog
But in ID, it looks like you have to define the value for each attribute in the Character Style editor. So I would need to create two separate bold styles, one for each paragraph style, because if I define the font and size, it will switch those  values as well as the weight. And if I need to create a separate Bold Character style for each paragraph style in which the default font is not bolded, what is the advantage of using character styles? Why not simply highlight the text and select the bold value from the Character palette, which then modifies the paragraph style just for those words that you bolded?

Thanks,
I was looking at some existing documents, which I think were created by folks who didn't know what they were doing (I am new to this job and all of the previous folks doing what I do are gone - and they clearly did not understand how to properly use styles). All of the fields had values in them, and when I didn't see an "As Is" value, it never occurred to me that I could just highlight the value and delete it to get rid of it.
When you use a bunch of different Adobe products, even though they  have  fairly similar user interfaces, it is those differences that really get you.....
Thanks, again

Similar Messages

  • How to apply a Character Style that's already been made in a template document?

    First of all I'd like to thank everyone that helps. I'm a complete beginner at scripting and appreciate all your help.
    I'm basically using GREP expressions to find patterns in a document and apply a Character Style which has already been made. This Character style was not made using script, but just in InDesign when making and setting up the template.
    var myDoc = app.activeDocument;
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = ".+\n";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    app.changeGrepPreferences.fontStyle = "Bold";
    app.changeGrepPreferences.pointSize = "12";
    myDoc.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    This is how I currently have it. I will manually define the changes to the text. The problem is, each template uses a different set of fonts and not all of them use Bold e.g. Sabon can use CE Bold.
    I would like to learn how to apply a Character Style and have tried looking around but nothing seems to work.
    Any help would be much appreciated.
    Thanks.

    select the text where u went  and run below  script after change group as per ur template.
    var myDoc = app.activeDocument;
    var mySel = app.selection[0];
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = "role";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    //app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    //~ app.changeGrepPreferences.fontStyle = "Bold";
    //~ app.changeGrepPreferences.pointSize = "12";
    app.changeGrepPreferences.appliedCharacterStyle=myDoc.characterStyleGroups.item("Style Group 1").characterStyleGroups.item("Style Group 2").characterStyles.item("Header")// Header is name of character name
    mySel.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    If it's help then click yes
    Mi_D

  • How to use character styles in the Find/Change JavaScripts?

    First, good luck to Ole. He's been so helpful (and such a good writer, too). All the best!
    My Find/Change JavaScripts are running into trouble at line 159 of the ExtendScript Toolkit. The script is searching for a particular font, to which it should then apply a character style. I'm using the format I see in Adobe's "FindChangeList" sample text, but the script is still hitting a wall. What am I doing wrong? I'd like to have a working method for searching, not only for fonts, but also for finding a particular character or paragraph style and then applying a new style.
    Simple stuff, but I'm roadblocked.
    Here is the script so far:
    //This script applies the DFKai character style to the Arial Unicode font.
    text {findWhat:"", appliedFont:"Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle:"DFKai"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find Unicode font; change to DFKai character style.
    Thanks for your help!
    Gary Niemeier

    You are absolutely correct. I don't know how those spaces got there! I copied the text from the "FindChangeList.txt" document, but somewhere along the way, a software program "helpfully" added the spaces. (Rest assured, it wasn't copied from AppleScript. I stick with JavaScript.) Anyway, the script now runs like a charm.
    My thanks to you! Another "newbie" mistake easily spotted, eh?
    One thing, though, if Adobe is reading this: please flesh out the "FindChangeList.txt" file for those who are not programmers/scripters. I'm just a normal InDesign user, and I really need examples of basic syntax in order to use the "Find/Change" script correctly. I'm referring to the syntax involved with finding or changing text with a certain character or paragraph style. I often search for styles, and those properties should be provided in the help file. A couple of samples are all that's needed. (I did read through the JavaScript reference guide provided by Adobe, and even in the "Find/Change" section, it did not provide this information!). Furthermore, I often search text for a specific font. Why isn't this syntax included as well? It would easy to do and would save users a lot of fumbling around.
    Thanks again, all the best.

  • How to simulate 'Use Page style' for a portlet

    All,
    How do i simulate the 'use page style' feature for a custom portlet ? Currently, I have to hard code the style.
    thanks

    uploaded gif under mime repository

  • How to create new character styles in Numbers 3.0

    In Numbers 3.0, it is possible to update existing characters styles, but I cannot find how to create a new character style, the + sign in the popup is always inactive when I edit text in a cell. The paragraph style popup has an active +, but it doesn't work for character style.
    Is there any way to create a new character style?

    Guillame,
    You're right about not being able to add styles, and I have not figured out how to modify a predefined character style, other than to Rename or Delete a predefined style. I have added this to my list of things lost.
    Jerry

  • Why can't I use character styles in my shared content?

    When I try to use a character style in a text box I've identified with a Content Tag, the character style gets applied to the whole text box as a paragraph style would.
    I can't even manually make a word bold without it making the whole paragraph bold.
    Is this a issue with Shared Content?
    I can't imagine I have to make a separate text box to make a bold word, right?
    Any suggestions?

    But I thought the whole point of shared content was that you could style it separately?
    When I draw a new text box on my phone layout and I click the tag for the text I want to share from my desktop layout it fills in the content without any styling.
    Read this tutorial:
    Adobe Muse Help | Working with Synchronized Text
    "With Synchronized Text, you can type common text once and maintain a consistent copy on multiple instances. If you want to edit the text, changing it once updates all instances of the text across your site. When updating text across all instances, Adobe Muse does not alter any style attributes associated with an instance."

  • How do I export character styles as XML?

    I have a load of InDesign CS4 files. They contain paragraph styles, but do not appear to have any explicit character styles, though do contain content that is rendered as italic, bold, superscript content etc.
    I have associated the paragraph styles with some imported tags and exported them successfully as XML, BUT I can't find a way of grabbing hold of the character styles in the same way.
    Very grateful for some guidance on this.
    Thank you
    Brad

    It sounds like your problem is that the character styling has been applied ad hoc - i.e., without character styles.
    I would suggest creating all the character styles you need/want first. Then, you can use the Find/Change feature to find all text with a certain styling, and apply the appropriate character style to it. You'll need to think through the order in which you do the various Find/Change operations. For example, you will want to find all cases of Bold + Italic and replace with a Bold + Italic character style before you carry out the process for text that is simply either Bold or Italic.
    Once you have the Character Styles applied, you can map them to XML tags just as you did with the Paragraph Styles.

  • How to apply bold character style with grep

    finding bold characters in a particular paragraph style
    I want to apply a character style
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.string = String.Bold;
    if (app.findGrepPreferences.appliedParagraphStyle == myPar) {
    app.changeGrepPreferences.appliedCharacterStyle = myCar1;
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • How to style text with XML import using character style that is in a group (aid:cstyle = "group1"."style1") ?

    Hello, I am using an XML file to import text into InDesign page items. Everything works well using the attribute "aid:cstyle = style1" but since the introduction of InDesign groups, our users want to use them but we do not know how to reference them in the xml attribute.
    I saw somewhere on the internet that you should use "aid:cstyle = group1:style1" or "aid:cstyle = group1|style1" but both won't work. They simply create a new ungrouped style name "group1:style1" or "group1|style1"
    So what is the right formula ?
    Thanks

    Tagged Text is nice but all the copy in your page item is one big block, no way to separate and track individual values, say in your page item you have a description and a sale price, you can't update the price without reimporting the description as well. We use many fields inside an individual page item and just as one example we need to be able to update all prices on the page without modifying anything else that shares the page items with the prices. Also XML updates you can trigger an update for the whole document in one operation, while with Tagged Text you have to "place" your text file for each individual page item you are modifying (even with scripting you call the place function as many times as you have page items). So say you have a page or document with 200 boxes across multiple layers that is a lot of individual actions.
    Anyway back to my problem.
    I've never used Mapping tas to styles before, but running some tests here I clearly don't understand it. If my text is already tagged and I map a style to a tag, it untags all my individual text elements and leaves only the page item tag, and doesn't style my text... I'm going to try and read more on this.

  • DELETED: How can we use old style Space UI as default page template

    misupdate. Sorry.
    Edited by: thamaguc on 2012/07/03 21:57
    Edited by: thamaguc on 2012/07/03 21:57

    user10756343 wrote:
    Is there is any way where we can instruct portal to use some specific template for user's mypages based on the experience definition. I'm not exactly clear what you are trying to do. Are you saying you'd like to default to a certain column orientation for all new pages created or to block the ability for users to choose a layout?
    user10756343 wrote:
    We want to have something dynamic as we are using multiple experience definitions and not for all the experience definition we want to set the adptive layout as default layout for mypage portlets.So you are saying that you don't want to use adaptive layouts for the My Page experience for all experience definitions?

  • How to apply inmath character style to fraction values

    Hi
    I try to apply inmath style to fraction values in indesign file.
    My code here:
    app.findGrepPreferences = NothingEnum.nothing;
                   app.changeGrepPreferences = NothingEnum.nothing;
                   app.findGrepPreferences.findWhat = myText;
                   app.changeGrepPreferences.appliedCharacterStyle = "Fraction Answers";
       app.changeGrep();             
    But it throws error "Invalid value for set property 'appliedCharacterStyle'
    Thanks
    Sangeetha

    Try this,
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.appliedParagraphStyle = "myPar";
    app.changeGrepPreferences.appliedCharacterStyle = "myCar1";
    app.activeDocument.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • Having a problem with character styles in indesign

    I'm having another problem with my style sheets in indesign, I've now got an awful lot of styles in paragraph and character styles. I've created different styles for paragraph justified text and when I go to my style in paragraph styles to use tight text copy, character styles always overides it so it means I have to do  whole lot of extra formatting just to put it right. Does anyone have an idea how I can stop character styles overiding paragraph styles? Thanks very much.

    Perhaps your character styles apply more than you actually want? I.e., rather than just "+Italic" it also applies custom tracking. You should use character styles only to override the stuff you really want to change.
    You can check by calling up the definition for those character styles; the huge "Style Settings" text box lists all the attributes it changes.

  • URL from Character Style

    I am trying to figure out how to create a script of some kind (apple or java) that will search a document for any instance of a character style and turn that into a URL. If this has been posted before does anyone know where? I searched but can't find anything.
    Any help or guidance would be appreciated. I am using CS3 on MAC.
    Thanks

    Hi,<br />//Assuming your character styles is called "web"<br />//In other cases, replace web by your own predefinite name<br /><br />var doc=app.activeDocument;<br />//Define find text preferences as text using character style called "web"<br /><br />app.findTextPreferences.appliedCharacterStyle=doc.characterStyles.item("web");<br /><br />//Find text occurences that match the preference<br /><br />var found = app.findText();<br /><br />//Add hyperlinks to the occurences<br /><br />for(i=0; i<found.length; i++)<br />{<br /><br />//Replace Yahoo.fr by your desired website<br />     <br />var dest=doc.hyperlinkURLDestinations.add("http://www.yahoo.fr");<br />     <br />var source = doc.hyperlinkTextSources.add(found[i]);<br />     <br />var dest=doc.hyperlinkURLDestinations.add("http://www.yahoo.fr");<br />     <br />doc.hyperlinks.add(source,dest, {visible:false, name:"yahoo.fr ("+(i+1)+")"});<br /><br />}<br />//If you want to export your doc as a interactive document, don't forget to set add hyperlinks to true or they won't be active in your pdf.<br />Loic

  • Find character styles

    Hi,
    How to find character styles through javascript

    finding text using character style means the below code will do that...
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.appliedCharacterStyle = "char_style";//character style name
    found = app.activeDocument.findGrep (true);
    for (i = 0; i < found.length; i++){
        found[i].select();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • Break link to Character Style with JS (CS4ME)

    Hi,
    I'm wondering how to break a link to a character style in JS. By break
    link I mean removing the character style but preserving the formatting.
    Given a selected textStyleRange, say, in the UI there are two ways of
    doing this. One is to click "Break link to Style" in the flyout meny of
    the character style palette.
    The other is to right-click and select "Apply character style."
    It's a little unintuitive, because CLICKING on removes overrides,
    but right-clicking and selecting the menu option doesn't.
    So when I saw that, I said to myself aha! Probably:
    myText.appliedCharacterStyle = myCharStyle
    is equivalent to clicking on , while
    myText.applyCharacterStyle(myCharStyle)
    is equivalent to right-clicking on and choosing "Apply character
    style."
    But it isn't.
    They both apply None and remove all formatting.
    So, anyone know how to break a link to character style without removing
    formatting in JS?
    Thanks,
    Ariel

    Thanks Peter. That's interesting. After Shabbos I'll have to try figure
    out how to apply a character style without removing overrides as well.
    It may be a two-step procedure.
    Thanks,
    Ariel

Maybe you are looking for

  • How do i download a dvd to my macbook pro

    I recently converted some old VHS tapes to DVDs.  I would like to download and edit them.  How and what do I do??

  • Rwserver.exe - Unable to locate dll

    After 'successfully' installing both 9iAS infrastructure and app server on separate Win2k boxes, trying to start the reports server (either through em or as a service) generates the following pop-up error message on the app server: The dynamic link l

  • Javafxpackager errors

    Hello everybody, I've been working on a JavaFX app for more than a month now, and since I need a standalone prototype I've been trying to deploy it in the last few days. Problem is - with Netbeans there is a known error with null sized lib files and

  • SAP Portal JDBC Connector for Oracle

    Hi forum:    hi need to configure the DATABASE URL for make the connection with JDBC Connector to Oracle.    Somebody knows this url ? thnks Joshua

  • Setting background style in a hbox

    Hi, I am using the following HBox inside a repeater to achieve alternatingitem color <mx:HBox id="hbox1" horizontalGap="0" backgroundColor="{(objRepeater.currentIndex%2==0 ? '#ffffff': '#000000')}" width="100%" > If I give a # or alphabets I am getti