How to style text that is enclosed in space characters

Via a paragraph style sheet, I need to apply character styles to text that is enclosed in space characters.
For example:
The cat <<thinspace>> sat <<thinspace>> on the <<enspace>>mat<<enspace>>
In the above, "Sat" would have one character style while "Mat" will have another.
What's the best way of doing this?
I know Indesign has GREP styles but that doesn't seem to work to text enclosed in space characters.
Also the only reason I am using space characters is because they are invisible when printed.
Is there any other method for wrapping text to mark it out as needing to be tagged with a style?
Thanks!

Would non-joiner characters surrounding target words work for you? In the GREP style dialog box in the paragraph style panel, the non-joiner is under the @button > Other. Non-joiners take no space and do not print.
If there's a collection of words that need a specific character style for specific words, you could define each GREP action with @Locations > word boundary before and after the word. If there are many words in the collection, with many GREP style clauses, performance could slow.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
big_smile wrote:
Via a paragraph style sheet, I need to apply character styles to text that is enclosed in space characters.
For example:
The cat <<thinspace>> sat <<thinspace>> on the <<enspace>>mat<<enspace>>
In the above, "Sat" would have one character style while "Mat" will have another.
What's the best way of doing this?
I know Indesign has GREP styles but that doesn't seem to work to text enclosed in space characters.
Also the only reason I am using space characters is because they are invisible when printed.
Is there any other method for wrapping text to mark it out as needing to be tagged with a style?
Thanks!

Similar Messages

  • How do I know that there are double-byte characters in s String?

    Hi!
    If I have a String that contain English and Chinese words,
    How do I know that the String contain double-byte characters(Chinese words)?
    Following is my method and the problem I suffered...
    String A = "test(double-byte chinese)test";
    byte B[] = A.getBytes();
    if(A.length() != B.length)
    System.out.print("String contains double-byte words");
    else
    System.out.print("String does not contain double-byte words");
    If the String contains Chinese words,then A.length() will be smaller than B.length...
    I run the program on Window NT workstation(Tradtional Chinese version) and it works...
    Then I run the same program on Redhat 6.0(English version),
    but the result was not the same as running on NT...
    because A.length() always equal to B.length...
    I guess that's because of Charset of OS...
    But I don't know how to set the Charset of Linux...
    Does anybody have other solution to my problem?
    Any suggestion will be very appreciate!

    A String is always in Unicode. You cannot see what kind of character is in the string unless you compare with the Unicode range of charcters. E.g. 3400-4DB5 is CJKUnified Ideographs extension A. Then you at least know that is is not Latin-1 or other.
    Klint

  • 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.

  • [JS, CS3] How to find text that is NOT a paragraph return

    Hi all,
    This is probably an easy one, but I can't seem to get the idea. I want to search within some text and find everything EXCEPT the paragraph return. What would be the way to build that expression? Thanks for any response.
    Regards,
    Len Swierski

    Thanks, Peter!
    I appreciate your help but I have found another solution. I am amazed at my own stupidity sometimes. You see, I do my scripting in a very lame sort of way because I have never used Javascript outside of InDesign. As such, I find myself at a disadvantage because the documentation that Adobe provides assumes that you are aware of many of the basics. Case in point: I have always had trouble manipulating strings because I NEVER KNEW that you could search and replace strings! I just could not find examples of this in the Adobe documentation. So here I was in some cases adding temporary textFrames so I could get to my strings as text contents and then removing the temporary textFrames at the end of the script. In this particular case I needed to merge several paragraphs into one paragraph. Now that I know how to search & replace strings, it is so simple to strip away all the paragraph returns (which are included in text contents). I am learning, albeit rather slowly. Thanks again.
    Regards,
    Len Swierski

  • How to edit text that is too fuzzy

    I am trying to edit a psd doc that I received form someone else. It is supposed to be a diet guide that someone created for me. I need to edit it.
    When I open it, it opens very small. In image size, it is 105*75. The doc is 7*5. The resolution is 15
    I can zoom in on the doc, but when I do the text is so fuzzy that its impossible to make out so I can edit it.
    I tried going into Image size and changing the res to 300. This increases the size of the image to 2100*1500
    After it finishes resampling, the image is larger. I unzoom, but the text is stil way to fuzzy to edit.
    What am I doing wrong?
    Phillip

    Should have is the opritive word. I am atatching a couple screen shots. The 1st one is as the doc looked when 1st imported. The 2nd one is zoomed in.

  • How to have text that is over several pages

    New iBooks user.  How do I get text to flow to next page?

      You're welcome.
    If you'd like to study up on the mechanics involved when editing a book in iBA, see the related video in iTunes Connect and check out:
    • Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do 
    • iBA/Apple:http://www.apple.com/support/ibooksauthor/
    You'll be fine I'm sure. and best of luck w/your book(s).
    Ken

  • How to obtain text from TextEditBox on panel

    Hi all,
    I would like to ask you, what should I use when I want to get text from TextEditBox. I have observer, which listens for chages(when user hits enter, method Update from Observer is called). The only thing that I dont know is how to get text, that has been placed into text edit box. I know that dialog observer, has method GetTextControlData, but I have Panel...
    Thx

    Hi Ondrej
    You can get text using ITextControlData interface. Like this:
    InterfacePtr<IControlView> iCtrlView(this, UseDefaultIID());
    if(!iCtrlView) break; // put some assert message
    InterfacePtr<ITextControlData> iTextData(iCtrlView, UseDefaultIID());
    if(!iTextData) break; // put some assert message
    PMString theString = iTextData->GetString()
    Regards
    Bartek

  • I have a mid 2007 iMac.    2 GHz Intel Core 2 Duo, 4 GB 667MHz DDR2 SDRAM, OSX 10.9.5.   I attempted to do the latest update and got the message:  Start up disk is full.  Delete files.  How do I do that?

    I have a mid 2007 iMac.    2 GHz Intel Core 2 Duo, 4 GB 667MHz DDR2 SDRAM, OSX 10.9.5.   I attempted to do the latest update and got the message:  Start up disk is full.  Delete files.  How do I do that?

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Get an external hard drive on which to store some of your files after which you can
          erase the data from your internal drive to free up space.
      5. Also see Freeing space on your Mac OS X startup disk.
      6. See Where did my Disk Space go?.
      7. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • In rc.conf, how to specify a parameter with a white space in it?

    I'm setting up the wireless network. In rc.conf:
    wlan_wlan0="wlan0 essid myessid key mykey"
    myessid in my case is something like "ABC DE", I've tried many ways, but it seems all archlinux is doing is to simply split that string with white space characters as deliminaters.
    Can any one tell me how to write the correct script in my case? Thank you.

    I think this is not possible.
    /etc/rc.d/network
    wi_up()
    eval iwcfg="\$wlan_${1}"
    [ "$iwcfg" = "" ] && return 0
    /usr/sbin/iwconfig $iwcfg
    iwcfg is used unquoted and thus subject to field splitting. The standard doesn't seem to provide any way to switch it off from inside the string being splitted.
    Last edited by diegonc (2010-07-09 21:25:16)

  • Does anyone know how to select text in Appleworks, click on the font button and then be able to scroll thru all the font so that one can see the text change as you scroll down the list, at present  I have to do it one font style at a time and then repeat

    does anyone know how to view text in Appleworks, to be able to click on the font button and then be able to scroll thru all the font so that one can see it change as you scroll down the list, at present  I have to do it one font style at a time and then repeat? Thanks jl

    Welcome to the Apple forums
    Your question really belongs in the AppleWorks community/forum.
    You can turn on fonts in actual type in the AppleWorks preferences.

  • Add style to large block of text without affecting existing styles within that text

    Hello! First post here.
    I have a long document of text that mostly does not have text styles attached (this was a mistake). However, there is a large number of areas of styled text within.
    Is there a way to select all the text and apply a style to only the unstyled text without affecting the existing styles?
    Doing this by hand text block by text block would take a long long time.
    Any help is greatly appreciated.
    THX!
    Ian

    winterm wrote:
    What do you mean by "unstyled text"? It must have some definition, anyway.
    Like others, [No Paragraph Style] and [Basic paragraph] are searchable, too.
    boomshakalaka! Thanks! Im familiar with this panel but didnt see how to specify 'Character Style: [No Character Style]'.
    Had to click on the icon

  • TouchUp: How to add an underline to text that is not underlined?

    The subject says it all, how do I use the TouchUp tool(s) to add an underline to text that is not underlined?

    There is an "underline" annotation available for the Comment & Markup toolbar.
    First, open the Comment & Markup toolbar.
    This will let you observe the addition of the Underline annotation.
    You want to access the "More Tools" dialog.
    There are various ways to get to it.
    --|  Place the mouse cursor in the tools icon 'ribbon' over in the empty space at the right.
         Right click for the context menu.  Select "More Tools".
    --| Select Tools > Customize Toolbars
    With the More Tools dialog presented, scroll down some to view the 'Comment & Markup Toolbar' choices.
    The default toolbar does not show:
    Underline Text Tool, Cross Out Text Took, Attach a File as a Comment, Record Audio Comment, and some others.
    So, select the Underline Text Tool.
    Close the dialog. The Underline Text Tool is now part of the Comment & Markup Toolbar.
    The toolbar selections, from "More Tools", is sticky.
    The Properties dialog for the Underline Text Tool permits configuration selections such as:
    – underline style of straight | squiggly
    – color
    – Opacity
    At the bottom of the tool's Properties dialog you can tick the selection "Make Properties Default".
    As with other annotations, there is a pop-up note available for entering information.
    Be well...

  • I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    Go to settings > messages > send & receive
    check or uncheck the correct phones numbers and/or email addresses

  • How do you edit text that is in a text box?

    How do you edit text that is in a text box?  I just want to change the font color of the text.  Solution in the Help files recommends selecting the text and then selecting Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    This is what the help files recommend
    (Optional) To make further changes to the text box:
       Using the Select tool or the Text Box tool, click an edge of the text box to select it, and then drag a corner to resize it. Use the Properties toolbar to change the border and fill options.
       Double-click the text box to edit the text or change the text attributes. Drag across text to select it, and then select options from the Properties toolbar.
    When I try the above solution I don't have a  "Options" in the "Properties" toolbar.
    Why would they change a process that was so simple in previous editions to such a hidden awkward process?

    Try with a Brightness/Contrast adjustment layer and/or changing the blending mode.
    If the effect is too much for the rest of the bulb, you may be able to mask it out.
    It would help if you post a representative picture here on the forum page for us to look at.

  • Both my husband and I have both downloaded the new IOS 8.2 and now he is getting my text messages that are only addressed to me  He is a 5 and I have a 6.  How can I fix that?

    My husband and I have both downloaded the new IOS 8.2 and now he is getting my text messages that are only addressed to me.  He has a 5 and I have a 6. It is like we are synced together.  How can I fix that?

    Is he getting your SMS messages (green) or your iMessages (blue). If SMS message, go to Settings>Messages and turn off Text Forwarding. If blue, are you sharing an Apple ID? You should each have your own.

Maybe you are looking for