Reflection applied to character/paragraph style?

Can anyone point me in the right direction to create a character or paragraph style for using the web 2.0 reflection on text? example below...
Thanks!

Apologies not necessary. That previewColor property has been a mystery for quite some time, and when I finally found out what it is supposed to do, it seemed to be so bug-ridden that I quickly steered away from it and I gave up attempting to make any sense of it. But your script just avoids those bugs popping up!
As I said in the IDS post: it's rather sad the Adobe team gave up on further developing this great hidden feature into a full one; and it's downright worrying that they left that legacy code in CS5 and later, so it could get infested with all those nasty little bugs. It leads me to think: how many more 'dead' code is there, in CS5, 5.5 and now in CS6? Could that be the reason later versions are so much slower and more buggy than my trusty CS4?
(Point in fact.
In CS4 and earlier on the Mac, all plugin resources are gathered into neat, small packages inside a single large indexed file. That makes sense, because every single plugin resource is just a couple of bytes long -- say, a single icon, or a single string "Menu Item Name". With CS5, the programmers suddenly took a Lazy Turn and wrote out every single resource as a single small file. That means that
1. (Annoying!) Since hard disk space is allocated by the kilobyte (typically 4Kb chunks), 10 tiny resources totalling 1 Kb now will suddenly occupy 40 Kb of disk space. Sure, hard disk space is cheap. Apparently, it's even cheaper than doing some programming -- or even just using the load code from the last version!
2. (Frustrating!) Locating, opening, loading, and then closing a single file takes time and resources, but after a file got loaded into memory, you can do with it whatever you want. Locating, opening, loading and then closing each of the dozens of small files per plugin takes lots of time. Is that the reason CS5.5 starts up so incredibly slow? Jongware sez: yeah for sure it won't help.
/Point in fact).

Similar Messages

  • E-pub character/paragraph style exports

    Just getting into this e-pub thing. I've watched a few tutorials, but I'm still working with CS5 for the time being. I know that in order for formatting to transfer to the e-pub file on export, one has to make sure that all content is formatted using character or paragraph styles, which I have done. However, I am using a large coloured cap at the beginning of each page which sometimes requires extra-tight kerning (-75). I have assigned a character style for letters such as "O" and "T" which reflects this kerning. However, when I export it and view it in Calibre, the kerning is completely ignored and I have this nasty white space between the "O" and the "nce" on the word "Once". Any comments?

    There are three issues here: first, what text attributes does InDesign export and what not (apparently, "kerning" is a "no") and what can be used in an e-pub. Kerning? I don't know -- in CSS you have "letterspacing" and "wordspacing" attributes, so theoretically you could use these instead. But CSS support among the various software and devices varies enourmously, so it could be you are doing all this for just one or two devices with "just the right support".

  • Why does 'Copy Character/Paragraph Style' work so inconsistently?

    Is it just me, or do the 'Copy Character Style' and 'Copy Paragraph Style' format options barely ever work? Most of the time, I can't even USE the bloody CCS feature...it's greyed out. This occurs (for me at least) in both Pages version 1.0.2 and Pages '08. Any feedback is greatly appreciated.

    Jordan,
    There are a couple of Help Pages that may shed some light on your situation. They are: _Changing the Style of Text_ and _Copying and Pasting Character and Paragraph Styles_. As I often do after reading a post like yours, I tried to duplicate the situation. Before studying the help references, I would have had the same complaint that you do. I was only successful in getting the Copy Style and Paste Style Tools to work after I applied Styles to some text in my document. It seems that one may only copy a style from a block of text that has had a style applied, and so-called "overrides" won't be copied. So, it's not a "Format Painter" in the MS tradition, as it only looks at what Style has been applied, not how the formatting may have been altered.
    Hope this helps.
    Jerry

  • Character/paragraph style colour chip

    Hi
    When I double-click a paragraph or character style and try and edit the colour chip, it doesn't bring up the colour picker. I have a list of predetermined process colours, but I can't make my own. Surely this is wrong?
    Thanks
    Antony

    Make the color change to your type on screen using swatches or color
    Click once on the name of the style (you will notice a plus sign)
    and the plus is gone showing your selection matches and confirming that style has been redefined
    All instances using that style will now show the new color.

  • Automatically create Object, Character & Paragraphs style when you copy & paste the same item.

    InDesign could create styles automatically. If I am copying and paste an object or paragraph - that means I will be using it in multiple pages and consequently be making changes to it. I know I can always create a syle for all my elements, but having that feature build-in would be great. Especially for the designers like me who works on small documents. Great Forum!
    Thanks!

    InDesign make it really easy for you to create styles. I just believe that having it as an automatic feature (of course, an optional feature) would save time when working in small - mini publications, where there is really no need to create syles . Just my thought.

  • Color palette in Character/Paragraph styles

    In AI CS5, where does the Character Style Options dialog pull it's colors from for the Character Color list (see image)?
    I'm working in a RGB document, yet I see predominantly CMYK colors.  I thought it might be the default swatches palette so I closed it and opened my custom color palette, but I'm still seeing the wrong set of colors.
    I'd like to add or edit colors in the list, or load one of my palettes, but I can't figure out how or if it's possible.
    Can anyone help?
    Chris 

    Chris,
    The colors are from the Swatches panel. If you're getting CMYK colors in the list then you have the CMYK default swatches (or other CMYK swatches), not the RGB swatches. Click on the Swatch Libraries menu, go to Default swatches, select Basic RGB. Load those into the Swatches panel, then open the Character Style Options. The RGB colors should now be in the list.
    Peter

  • Applying paragraph style to a single paragraph affects all previous paragraphs

    Hey,
    I'm trying to create a script that would take an array of text objects that describe what the text and style of a particular line of text is. And in some lines to apply Character Styles as well.
    The problem is that, while the script works when the loop is in the character styles "mode", it seems to apply the paragraph styles to all the previous lines of text when the aforementioned object asks it to apply only the paragraph style (no character styles).
    The offending line is this:
    if ( typeof line.text == 'string' ) {
        frame.contents += "\r" + line.text;
        frame.parentStory.paragraphs[-1].appliedCharacterStyle = doc.characterStyles[0];
        frame.parentStory.paragraphs[-1].applyParagraphStyle(style);
        continue;
    I even copied the style-apllying lines from the Character-Styles-applying section of the script (the else part), but it still applies the style to all the previous lines of text. The script below is the full code I have I long with one of the objects that text data. If I comment out the "offending lines" mentioned above, the script applyes all the styles correctly. Otherwise, only the last line (the Product - Description style) is applied, while all the previous lines attain the 'Spacer' style.
    Can anyone see what I'm doing wrong? (sorry for the giant piece of code, but I can't pin-point what's not relevant here).
        'text': [
                'style': 'Product - Title No Indent',
                'text': [
                    'Test Product',
                        'style': 'Superscript',
                        'text': '®'
                    ' Title'
            { 'style': 'Spacer', 'text': ' x' },
            { 'style': 'Spacer', 'text': ' x' },
            { 'style': 'Spacer', 'text': ' x' },
                'style': 'Product - Description',
                'text': ['Designed for monitoring steam sterilization processes.']
    function add_text_to_frame (frame, product) {
        var i, l, j, k, line, style, line_styles, char_style, line_text, bit;
        for ( i = 0, l = product.text.length; i < l; i++ ) {
            line = product.text[i];
            style = doc.paragraphStyles.item( line.style );
            if ( typeof line.text == 'string' ) {
                frame.contents += "\r" + line.text;
                frame.parentStory.paragraphs[-1].appliedCharacterStyle = doc.characterStyles[0];
                frame.parentStory.paragraphs[-1].applyParagraphStyle(style);
                continue;
            else {
                line_styles = new Array();
                line_text = '';
                for ( j = 0, k = line.text.length; j < k; j++ ) {
                    bit = line.text[j];
                    if ( typeof bit == 'string' ) {
                        line_text += bit;
                    else {
                        line_styles.push({
                            'start': line_text.length,
                            'end': line_text.length + bit.text.length,
                            'style': bit.style
                        line_text += bit.text;
                frame.contents += "\r" + line_text;
                frame.parentStory.paragraphs[-1].appliedCharacterStyle = doc.characterStyles[0];
                frame.parentStory.paragraphs[-1].applyParagraphStyle(style);
                for ( j = 0, k = line_styles.length; j < k; j++ ) {
                    char_style = doc.characterStyles.item(line_styles[j].style);
                    frame.parentStory.paragraphs[-1].characters.itemByRange(
                        line_styles[j].start,
                        line_styles[j].end
                    ).applyCharacterStyle(char_style, true);

    Here's the shortest code with the problem I could come up with.... You can run it if you create two different default paragraph styles: 'Product - Description' and 'Product - Title No Indent';
    The problem is that the first line should have 'Product - Description' style, but it instead it gets 'Product - Title No Indent'.
    If I comment out one of the paragraphs, everything works fine. What's wrong?
    var doc = app.documents.add(),
        product, text_frame, i, l;
    product = {
        'text': [
                'style': 'Product - Description',
                'text': 'Designed for monitoring sterilization processes.'
                'style': 'Product - Title No Indent',
                'text': 'Designed for monitoring sterilization processes.'
                'style': 'Product - Description',
                'text': 'Designed for monitoring sterilization processes.'
    text_frame = doc.pages[0].textFrames.add();
    text_frame.geometricBounds = [ '0pt', '0pt', '240pt', '300pt'];
    for ( i = 0, l = product.text.length; i < l; i++ ) {
        text_frame.contents += "\r" + product.text[i].text;
        text_frame.parentStory.paragraphs[-1].appliedCharacterStyle = doc.characterStyles[0];
        text_frame.parentStory.paragraphs[-1].applyParagraphStyle(
            doc.paragraphStyles.item( product.text[i].style )

  • Problem with footer in table style not applying paragraph style... or just me?

    I'm having a niggling problem making a table style with cell/paragraph styles for the header, body, and footer respectively. I want to make it as simple as possible for other users but one thing keeps tripping me up. I'll try and describe with screenshots. I'm using InDesign CS5 on Windows 7.
    I have a table style set up with cell styles for the header, body, and footer, and paragraph styles for each as well. Say I'm converting a list of generic text to this table:
    i convert it to my table style. The body style is a numbered list:
    I convert the header to an, err, Header. The cell applies the header paragraph style as I should expect:
    I convert the footer likewise, but it maintains the Body text paragraph style as an override!
    So naturally I clear the override and it works fine. But of course, I'd rather it acted like the header row. I can't work out where the override on the footer comes from and why it operates differently in this respect to the header row. There is nothing different about how the styles are constructed. Have I made a mistake somewhere, or is this correct behaviour I'm misinterpreting, or something...?
    edit: Here is the file, if that will help:
    https://www.dropbox.com/s/4kzgui1itaskuvz/strip%20list%20test.indd

    Hi,
    I was able to reproduce the issue you are facing.
    I will be logging a bug for this and it would be investigated.
    Thanks a lot for reporting the problem!!
    Javed

  • Most efficient way to apply Paragraph Style A to Paragraph style B?

    I'm looking for the most efficient way to all
    all aspects of an existing named paragraph style "A" to another named paragraph style "B". I'd especially like to find a keyboard-only way to do this.
    To my surprise,
    Copy Special >
    Paste doesn't seem to copy tab settings...(?) This leads me to suppose that other aspects of the source p'style may not be crossing the Great Paste Divide.
    Over the years I've used a variety of more or less clumsy multi-step, multi-tool "tricks" (including third-party plug-ins) to apply one named paragraph style to another, but knowing FrameMaker as I do I suspect there may be a truly efficient way to do what I want.
    Is there?
    Cheers & thanks,
    Riley

    Arnis:
    8.0p277.
    The Font family and style got Pasted -- that was immediately apparent. And based on all I know about F'Maker, I would've thought the tabs would go over.
    But when I opened the target p'style the Tabs area was completely blank.
    I'm not sure if anything else wasn't making it 'cross the Paste Divide: Once the Tabs weren't Pasted, I fell back to a different, brute-force strategy simply to get around the problem and return to work...
    Moreover, since the structured templates I inherited for this project are full of idiosyncrasies, I'll just file this one away under "The Templates Did It" and hope for better luck the next time I try the Copy Special thing...
    Cheers & thanks for your help,
    Riley

  • Apply a paragraph style to XML elements that have a specific attribute

    1) I'm an almost complete noob when it comes to XML
    2) I have an XML with a ssstructure like this:
    <chapter>
         <paragraph> bla bla </paragraph>
         <paragraph> bla bla </paragraph>
         <list type="disk">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
         <list type="square">
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
              <listitem>
                   <paragraph> bla bla </paragraph>
                   <paragraph> bla bla </paragraph>
              </listitem>
         </list>
    </chapter>
    Is there a easyer way (except iterating all the xmlElements) to find all the lists and apply the appropriate paragraph style (i have a "list_with_disk" paragraphstyle, and a "list_with_square" one)?

    Hi Vamitul,
    Please try the below JS code.
    var myDoc = app.activeDocument;
    //____________________ disk bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='disk']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Disk");
        }catch(e){}
    //____________________ Squar bullet style apply
    try{
        var rootElement = myDoc.xmlElements.item(0);
        var linkElementList = rootElement.evaluateXPathExpression("//list[@type='square']//paragraph");
        for(i=linkElementList.length-1; i>=0; i--){
            var myAttribute = linkElementList[i];
            myAttribute.xmlContent.appliedParagraphStyle = myDoc.paragraphStyles.itemByName("Square");
        }catch(e){}
    thx,
    csm_phil

  • Unresponsive paragraph style

    In an ID CS4 document, all text linked with a specific style has a font size of 9.535pt. The associated paragraph style shows 12pt. A character style has been applied to one word in each paragraph of the affected text; this character style emboldens the text and applies a font size of 9pt.
    I want the text to display in 12pt. However, any alternative type size I apply via the paragraph styles fails to take effect. (No GREP styles have been set up.) I've tried selecting all the text, Ctrl+Shift+clicking the Clear Overrides button and then changing the type size in the paragraph style, but it still doesn't work.
    I must be missing something. Can anyone explain what's going on?

    The only thing I can think of in this case is that you've applied a Nested Style to the paragraph, go to the Paragraph style and edit the style, go to Drop Caps and Nested Styles - and see if there are any, if there are then remove them and see what happens.
    If it's not in the Style then check to see if you've applied it manually - go the Paragraph Panels sub menu and go to Drop Caps and Nested Style (or CTRL ALT R)
    Sometimes an override is hard to get rid of too, and I find that holding down the CTRL (CMD) ALT (option) Shift key while clicking the paragraph style helps (it could be a different combination? Sorry if that is incorrect).

  • Having trouble with paragraph styles in CS4?

    Let me start by saying that I am recently switched from Quark, so I am very much a newbie at InDesign. I have been watching as many videos as possible, but can't seem to find the answers in them to specific questions like this.
    I have been taking old brochures that were created in ID3, and pasting type and photos into a new format that was created in ID4. The new format has paragraph styles created already, with updated fonts and other formatting as well.
    When I flow in all the new type, and click on the style sheet, it does change the type to the correct font and size, but there are formats within the paragraph that are not being updated. For instance: the whole paragraph (according to the style applied) should be Gotham Book, but even after applying the style to it, part of it stays Gotham Bold. It was bold in the earlier version of the document, but needs to be unbolded in this one.
    Why, when I apply the style, does it not affect the whole paragraph?

    The latter: InDesign CS3 files are being changed to a new design in InDesign CS4. I did not create either of these files, but am just making the changes from old style to new style, on about 15 different brochures.
    I guess I need to find a quick way to undo any character styles that were applied previously throughout the whole brochure. I want to be able to flow in the old copy, select all of the body copy for instance, and apply the new paragraph styles, without worrying that there is some other formatting in there that I don't even know about. I thought that applying the new paragraph styles would undo ANY of the previous formatting, but that turns out not to be the case.
    I think the poster who suggested doing a find/change might be onto something, but my brain hurts right now, so I am quitting for the day and having a lovely glass of chardonnay... I'll start again fresh in the morning.

  • How do I edit a paragraph style in Muse?

    Is there a way to change a typeface or other detail in a paragraph stylesheet in Muse? I've tried duplicating the style, and then, when I delete the old one, I replace it with the new one. Is there a more direct way to do that?

    Hello,
    If you create a paragraph style, then change any attribute, the style has an override. If you'd like to keep this override and redefine the style click the "redefine selected style from attributes" button (highlighted in the screen shot.)
    More info is here:
    http://helpx.adobe.com/muse/using/creating-using-character-paragraph-styles.html

  • How do I show table paragraph styles in keynote 6.1 (mac)?

    Hi community,
    I am tryying to apply changes to paragraph styles in keynote 6.1 (mac). But in the list which opens when i click in the triangle only the basis paragraph styles are seen.
    Any ideas how and whre i can find theses styles.
    Thanks
    slyrs

    I am sorry that I cannot make myself clear - perhaps because of my language competence
    1) There is a table style (for the whole table)
    And there are PARAGRAPH-styles for the text-attributes of the text in the table-cells (bold, italic, size, font etc.). I would call this a paragraph-style. This can be seen here:
    But this style cannot be edited or changed because it does not show up in the dropdown of the parapgrah-styles - as can be seen here:
    You DO NOT FIND the paragraph-style ("Absatzstil" in German) "Tabellenstil 1" in the dropdown.

  • [CS4/5] [JS] Which paragraph style does the panel context menu action work on?

    Hi all,
    I am trying to write something similar as http://forums.adobe.com/message/2866720#2866720 for the paragraph style context menu. I also would like to find out which paragraph style has been selected when the context menu opens. In the thread there is a "dirty" solution for this, the Edit and Apply options of the context menu also mention the name of the paragraph style. This works as long as the paragraph style is unique.
    In my situation the paragraph style names are not always unique, the same name is used in different paragraph style groups. I thought of an even "dirtier" solution that might work for this. The basic idea behind this is to create a new text, asfaik Indesign will automatically apply the active paragraph style to this text and it is easy to grab this style. The code for this is below:
    var myDoc = app.activeDocument;
    var myTextFrame = myDoc.textFrames.add();
    myTextFrame.contents = "grab the paraStyle";
    var myParaStyle = myTextFrame.paragraphs[0].appliedParagraphStyle;
    myTextFrame.remove();
    In my situation this approach seems to work fine but I am wondering if there is something against creating a new textframe and removing it later? And will the new text always get the current selected paragraph style?
    Best Regards,
    Bill

    I finetuned the snippet above a bit further. In some cases the context menu will be activated (right mouseclick) from a style that is not currently selected. In thoses cases the example above doesn't give the correct information. In order to avoid this I am now applying the paragraph style of the current context menu to an intermediate textframe. The snippet below is placed inside the EventHandler of my custom context menu item.
    var myDoc = app.activeDocument;
    //store current selection
    var mySelection = myDoc.selection;
    //create intermediate textframe
    var myTextFrame = myDoc.textFrames.add();
    myTextFrame.contents = "grab the paraStyle";
    myTextFrame.select();
    //apply the para style of the context menu to the intermediate text
    var contextMenu = app.menus.item("Text Style List Context Menu"); //or "$ID/RtMenuStyleListItem"
    var applyMenuItem = contextMenu.menuItems.itemByID(8488).associatedMenuAction; //Apply "para style for context menu"
    applyMenuItem.invoke();
    //grab the para style of the context menu
    var myParaStyle = myTextFrame.paragraphs[0].appliedParagraphStyle;
    //restore original selection and remove intermediate textframe
    myDoc.selection = mySelection;
    myTextFrame.remove();
    Again this snippet seems to work fine. I realize this approach will only work for para styles in a Document object and not for default para styles defined in the Application (suggestions to solve this?). A further refinement could be to first check if a para style name is unique, if that is the case the solution of Jongware (see http://forums.adobe.com/message/2861568#2861568) can be used and an intermediate textframe is not required.  
    I know this is a dirty solution but are there any issues with this approach?

Maybe you are looking for

  • File sharing between Leopard and Snow Leopard

    I have a G5 and a Powerbook running the latest version of Leopard and they are both on the same network as a Mac Mini and Macbook both running Snow Leopard. The computers on Snow Leopard have no problem accessing the shared folder on the computers ru

  • Solaris 8 x86, intel 810E motherboard

    hi, does anyone know where i can find a driver for the intel 810E motherboard (w/ built in AGP video)? this chipset is fairly new (4-5 months), but it seems like it's going to replace all of the midrange 440BX hardware. all of the new midrange (US $1

  • SNC for vendors?

    Hi I'm trying to find a new method of how we work. We have allot of equipment stored at vendor that they send and recieve from installations. Today they sometimes login with citrix and make the request in network, often not, so they will just send ma

  • Oxc19a0042 hp photosmart 5510 error

    Hi, As i turn my printer on it appears a error message 0xc19a0042 and it says that there is a problem with the printer or ink system. Please reply asap Regards Zuber

  • Accessing Simple Type Variable Defined in BPEL Flow, in Transformation

    Hi, I am using Transform Process Activity. In transform mapping, i would like to map one target element with a value defined in a 'simple type variable' which is defined in calling BPEL Flow, however I am not able to do it. for example: I have a BPEL