Inserting a special character with GREP styles

Hi.
I wanna define a GREP style that makes this: if I write Bluetooth I wanna that a registered trademark is added at the end of the word but with superscript format. Is it possible?
Thanks in advance.

No, GREP styles only apply formatting, they cannot insert characters. Use a regular find & change to do so.
(There is a thinking-outside-of-the-box solution. If you have access to a font creating utility, you can create a character 'h' with TM attached to it. Then you can use a GREP style to automatically apply this custom font to just the 'h' of 'Bluetooth'. See http://indesignsecrets.com/insert-a-special-character-with-grep-styles.php.)

Similar Messages

  • Writing Style check with Grep styles

    Here is an idea.
    I make dozens of differents books and journals, and each one has its own editorial pecularities -- some want their quotes double, others single, some want "e-mail" while others insist on "email", or no specific text before an email address. Lots of little things, and I always list as much as possible on the pasteboard -- but of course I have to check these items myself.
    Would it be useful if the user was able to put these "rules" in the GREP Style manner into your document (or template!), where it would not mark the found text with a style, but rather with a Spell Check wiggly? (Which, of course, then would need to be picked up by Preflight.)

    Well, yeah, but in that sense it's not that different from other stylesheets I have. (For all journals I make, I have at least one "current" updated template.)
    One could in general add stuff like this:
    \dC (?# wrong -- it should be [digit]°C)
    \doC (?# with a superscript 'oh' -- wrong)
    \d °C (?# with a space -- wrong)
    \d° C (?# space on the other side, also wrong)
    \dºC (?# masculine ordinal rather than degree -- also wrong!)
    An advantage over a warning wiggly line, rather than just putting all possible variants into the FindChangeList, is that you can always ignore the wiggly -- just like you do when a spell check tags potentially bad spelling (oh okay, "Peter Spier" does not get tagged, but "Jongware" does!).
    But I'll forgive Adobe if they can't find the time to squeeze this into CS5, somewhere in the next (hold on--) 05d:23h:32m:07sec.

  • Insertion of a special Character into a table

    Hi all,
    I came across a non keyboard character in an Oracle table (9i) and when i queried the table column with the following query
    Code:
    SELECT asciistr(col1) from test1;
    I got the output as
    \FFFD
    \02DC
    How could i insert the same character in my Oracle environment using the ascii code of the characters viz., \FFFD , \02DC
    I tried inserting with the followin insert query,
    INSERT INTO TEST1 VALUES ('\FFFD');
    INSERT INTO TEST1 VALUES ('\\02DC');
    but it inserted the above ascii codes as a character string rather than the special character.
    Kindly advice on how to insert the special character using their ascii codes.
    Please note that my Oracle version is 9i and its character set is WE8ISO8859P1.

    Just not possible. Whatever I tried I never could get back what I inserted:
    C:\temp>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    C:\temp>sqlplus user/passwd@dev
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon May 14 16:42:53 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> @afiedt.buf
    SQL> SET NUMWIDTH 10
    SQL> COLUMN a format a30
    SQL> COLUMN a1 format 99999
    SQL> COLUMN a2 format a10
    SQL> COLUMN parameter format a15
    SQL> COLUMN value format a20
    SQL>
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER IN ('NLS_CHARACTERSET
    ','NLS_TERRITORY','NLS_LANGUAGE')
      2  /
    PARAMETER        VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY    AMERICA
    NLS_CHARACTERSET WE8MSWIN1252
    SQL>
    SQL> ALTER SESSION SET NLS_LANGUAGE=american
      2  /
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY=america
      2  /
    Session altered.
    SQL>
    SQL> INSERT INTO t VALUES (UNISTR ('\FFFD'))
      2  /
    1 row created.
    SQL>
    SQL> SELECT DUMP (a) a, ASCII (a) a1, ASCIISTR (a) a2 FROM t
      2  /
    A                                  A1 A2
    Typ=1 Len=1: 191                  191 \00BFI think it is just not possible ...
    Regards,
    Michael

  • Special character "/" replacing with blank with Direct Input Method posting

    Hi All,
    I am posting FI historical data using Direct Input Method. Payment term contains special character "/"( I/E). SAP standard program replacing Special character "/" with blank (I E) so document posting is failing. Could you please advise.
    Thanks
    Chandra.

    Can You please specify the Transaction code and SAP program name for direct input.

  • How to Insert special character like 'Б б В в Г Д  ж Ğ ğ € ₧ š Ž ž'

    Hi All,
    My database NLS_CHARACTERSET is ABLAUT and my sql client setting is AMERICAN_AMERICA.AL32UTF8.
    when i try to insert the special character like 'Б б В в Г Д ж Ğ ğ € ₧ š Ž ž' in oracle it shows question mark or square box
    can any one help me how to insert the above character and view the same in database while retrieving.
    Thanks in advance.
    By
    Chells

    I'm not sure.
    Perhaps UNISTR() or TO_NCHAR() will be helpful.
    select level, unistr(concat('\', TO_CHAR(Level, 'FM000X'))) from dual connect by level < 300;

  • Multiple text alignment in one story with GREP (or similar)

    In search of trying to make my workflow much more efficient, I've been dabbling with grep styles and have come across an obstacle. This may be a limit to the character style features but I have been trying to find ways to use multiple text alignments (i.e. left, justified, right) within a single paragraph style sheet applied over multiple paragraphs. Is this actually possible with GREP or similar or do I just have my head in the clouds?
    If this was actually possible in Character Styles, I could quite possible make my job a wee bit too easy!!
    Hope you can assist me with this issue.
    Cheers.

    Alignment is a paragraph level attribute, not a character level attribute, and therefor is assigned in the paragraph style. A paragraph can have only one alignment setting. GREP styles can only assign a character style, so cannot change alignment.
    You could, however, use Find/Change with GREP to find a pattern and assign a pragraph style or new alignment, you just can't automate it the way you do with a GREP style.

  • Oracle 11g special character(á) length count

    Hi Experts,
    I'm facing an issue while inserting the special character (á) in Oracle 11g. The database table length for the column 'descr' declared as varchar2(30). I'm inserting a string ('Aabbccee/ddffggh Ffrán y Plaos') in column descr which is having the length 30. Please note the character 'a' in Ffrán is not letter 'a' but special character *'á'*. It gives the below error,
    java.sql.SQLException: ORA-12899: value too large for column ""DESCR" (actual: 31, maximum: 30)
    The strange is the same query works/insert in Oracle 9i without any issue. I suspect the special character *'á'* will take/count as 2 character in Oracle 11g but single character in Oracle 9i.
    Please provide the insight views and solution for this issue with out altering the column length.
    I hope the solution at the earliest, since this is an urgent requirement.
    Thanks.

    Your 9i database has character set WE8ISO8859P1 which is a single byte characterset.
    But on 11g, you're using AL32UTF8 - a multi-byte unicode characterset.
    Obviously with a multi-byte characterset, characters which took up a single byte might now need multiple bytes.
    So the default meaning of VARCHAR2(30) which is VARCHAR2(30 BYTE) may not be sufficient to hold 30 characters.
    Assuming that you want to use the different characterset - (and if not then you might as well rebuild your 11g database with the 9i characterset), then you need to do is to change your LENGTH SEMANTICS to CHAR not BYTE.
    This means two things.
    1. Changing NLS_LENGTH_SEMANTICS to CHAR via ALTER SYSTEM. I believe this needs a restart to take effect. This will affect newly created column definitions so that VARCHAR2(30) means VARCHAR2(30 CHAR) not VARCHAR2(30 BYTE) - so for changes going forward.
    2. Changing existing column definisition via ALTER TABLE xyz MODIFY colname VARCHAR2(30 CHAR) etc.

  • Indesign Grep style question

    Hello,
    I have a question about Indesign. I want to make the text after a certain character like a hair space for instance bold. This must be set in a paragraph style. I think this can be done with GREP styles. I have tried several things but it doesn't make sense to me.. Does anybody know if this can be done or is there a better way to do this?
    Thanks!

    Apply 'bold' character style to text:
    (?<=~|).

  • Hello Am trying to insert a special characcter "ƒ" but its not taking

    Hello all ,
    Help is greatly appreciated.
    Am trying to insert a special character for currency symbol -"ƒ". Below is my insert statement.
    INSERT INTO PROD.region
    (COUNTRY_ID, CURRENCY_SYMBOL , NAME)
    VALUES
    (530,'"ƒ"', 'Netherland Antilles' );
    I tried from TOAD as well as Sql Plus , but its inserting as "?" for currency symbol column .
    So please kindly anyone provide me suggestion how to have the exact value- "ƒ" to be inserted.'

    Hello,
    this is anything but trivial.
    My characterset is
    SELECT value
    FROM   v$nls_parameters
    WHERE  parameter = 'NLS_CHARACTERSET';
    WE8ISO8859P15One might assume that inserting the charcter is simply a matter of the correct ascii code
    SELECT ASCII('ƒ') x FROM dual;
             X
           191So we set up a test table
    DROP TABLE t_nvarchar;
    CREATE TABLE t_nvarchar(
         v NVARCHAR2(1)
        ,who VARCHAR2(20)
        );Now we insert some lines using SQL Developer
    INSERT INTO t_nvarchar (v,who) VALUES ('ƒ','SQL Developer 1');
    INSERT INTO t_nvarchar (v,who) VALUES (N'ƒ','SQL Developer 2');
    INSERT INTO t_nvarchar (v,who) VALUES (NCHR(191),'SQL Developer 3');
    INSERT INTO t_nvarchar (v,who) VALUES (UNISTR('\0192'),'SQL Developer 4');   
    COMMIT;And the same lines using SQL*PLUS
    INSERT INTO t_nvarchar (v,who) VALUES ('ƒ','SQL*PLUS 1');
    INSERT INTO t_nvarchar (v,who) VALUES (N'ƒ','SQL*PLUS 2');
    INSERT INTO t_nvarchar (v,who) VALUES (NCHR(191),'SQL*PLUS 3');
    INSERT INTO t_nvarchar (v,who) VALUES (UNISTR('\0192'),'SQL*PLUS 4');   
    COMMIT;And what do we get (Executed in SQL Developer, since SQL*PLUS cannot show the "foreign" characters
    SELECT v,who,DUMP(v) FROM t_nvarchar;
    V WHO                  DUMP(V)          
    ¿ SQL Developer 1      Typ=1 Len=2: 0,191
    ¿ SQL Developer 2      Typ=1 Len=2: 0,191
    ¿ SQL Developer 3      Typ=1 Len=2: 0,191
    ƒ SQL Developer 4      Typ=1 Len=2: 1,146
    Ÿ SQL*PLUS 1           Typ=1 Len=2: 0,159
    Ÿ SQL*PLUS 2           Typ=1 Len=2: 0,159
    ¿ SQL*PLUS 3           Typ=1 Len=2: 0,191
    ƒ SQL*PLUS 4           Typ=1 Len=2: 1,146How could it be that SQL*PLUS inserted the character 159 for ƒ?
    Because SQL*PLUS uses another characterset by default on my machine
    SELECT ASCII('ƒ') x FROM dual;
             X
           159So the only reliable way to insert UNICODE characters is the UNISTR function. And of course this only works when the column can accept these values.
    When you repeat the example with a VARCHAR column
    DROP TABLE t_nvarchar;
    CREATE TABLE t_varchar(
         v VARCHAR2(1)
        ,who VARCHAR2(20)
        );Now we insert some lines using SQL Developer
    INSERT INTO t_varchar (v,who) VALUES ('ƒ','SQL Developer 1');
    INSERT INTO t_varchar (v,who) VALUES (N'ƒ','SQL Developer 2');
    INSERT INTO t_varchar (v,who) VALUES (NCHR(191),'SQL Developer 3');
    INSERT INTO t_varchar (v,who) VALUES (UNISTR('\0192'),'SQL Developer 4');   
    COMMIT;You don't get what you might expect
    SELECT v,who,DUMP(v) FROM t_varchar;
    V WHO                  DUMP(V)          
    ¿ SQL Developer 1      Typ=1 Len=2: 0,191
    ¿ SQL Developer 2      Typ=1 Len=2: 0,191
    ¿ SQL Developer 3      Typ=1 Len=2: 0,191
    ¿ SQL Developer 4      Typ=1 Len=2: 0,191Regards
    Marcus
    Edited by: Marwim on 25.03.2013 16:06
    Added explanation for value 159 in SQL*PLUS

  • Special character key not working

    None of the special character key is working properly. More over character which are to be used by SHIFT key are also not working correctly.

    I am using OS X 10.9.3 and Pages v5.2 and a double-click with the Magic Mouse, or a double-tap with the Magic Trackpad will definitely insert the special character of choice at the previous cursor location in Pages v5.2, or within TextEdit. You must first establish application document focus (click in it) before the double-click/tap action.
    I can double-click/tap special characters and have them insert into form text and text area fields on a web page in Safari.

  • How to add A Special Character '&' in CGNode.addData()

    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by weiwei:
    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei<HR></BLOCKQUOTE>
    I had the same problem here and the only solution I found, was to turn of the validation using the setValidationMode member function of ClassGenerator.
    Regards,
    Reinhard Schuerer

  • ALV Excel Download problem ( Special Character)

    Hi,
    I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine, 
    Please suggest me to solve the issue.
    Thanks,
    Bhanu Gattu,

    Data strings with special characters can not be downloaded into XLS format from ALV grid. In my case, I replaced the special character " with space and I could download the data into excel.

  • Special Character being replaced by Question Marks in Java Mapping

    Hi All,
    I need some help on Java Mapping related to special characters.
    The problem is that i'm using a Java Mapping to add some information to the XML inside the Interface Mapping. This works fine on our development environment but, in our production environment, it replaces the special character with question marks (eg.: á --> ??).
    I'm suspecting of some configuration on the Java Virtual Machine that sets the encoding, but i don't have access to it. Does anyone have any clues about this problem?
    Thanks a lot,
    Leonardo

    Hi Leonardo
    Have a look at this forum thread, this might help you to solve your problem.
    Java Map Causing error because of ampersand &

  • How can i view the already permitted special character in the system

    Hi,
         How can i check already permitted special character in the BI System.
    Suppose i am adding some special character with the help of RSKC.
    I want to view the already permitted special character in the system.
    Usefull answers are really helpfull.
    MRC.

    hi,
       Thanks for your all user full answer.
    Actually my problem is, i am loding some datas with some speicial character(*,&,#).My data got loaded with out any error.
    The same special character(*,&,#) i checked it over the table RSALLOWEDCHAR.
    But the special character character is not available in that table.
    Thats why i am thinking , with out any error how my datas got uploaded.
    At the sametime special char is not maintained in the table RSALLOWEDCHAR.
    Is there is any other way to maintain the Special char(*,&,#).
    Shall i want  to check any other table apart from the  above tabe.
    Kindly explain the same.
    Thanks & Regards,
    MRC.

  • With GREP, is there a way to assign a character find/change to a p style?

    I'm looking for more ways to automate text styling in the magazine I produce. In InDesign, I can assign find/replace command strings in the Find/Change GREP window, but I've found no online source that tells me how to find/replace characters using GREP WITHIN a p style. It seems as if the latter GREP capability is limited to changing character styles and can't search and replace actual characters.
    Example: I have a list of recipe ingredients. I want to replace the quantity (one to three digits) at the beginning of each ingredient with a tab-digit(s)-tab combination. In Find/Change, I can enter "\d+\s" and replace with "\t$0\t" but I don't see a way to assign that capability to a p style. I want this find/change to occur automatically any time copy is added to text tagged with the Recipe Ingredients paragraph style, so I don't have to keep running a Find/Change each time we edit the page. One power user has told me it's not possible. Any insight or alternative solution would be much appreciated.

    Your power source has it right, GREP Styles can only apply character styles to the text it finds.
    And there is no easy way to have text replaced automatically -- you would still need to run a script, or press a hotkey or something.

Maybe you are looking for

  • My songs are NOT showing up in iTunes

    I just got a new MacBook Pro, and i signed in to my iTunes account. But for some reason, when I click "Library" it automatically takes me to this page that says "Music" at the top then says "go to itunes store or scan for music." Also, when I'm in th

  • How do I get my iPhone 5 to stop automatically launching Music when plugged into my car USB port?

    For quite some time, my iPhone has been set to automatically launch Music -- on the first song listed alphabetically -- as soon as I plug it into my car's USB port, which I use both for connectivity and for charging. It's enough to have made me hate

  • How do i fix a iphone thats stuck on connect to itunes logo

    Okey so i have a problem with my iPhone, its stuck on the connect to iTunes logo and i can't seem to make it go away and i didn't want to use the restore button on the iTunes app but finally i gave up but even that didn't work it said  error (4013) i

  • Can't crop an image in CC2014

    Hi  I can't crop and image in photoshop. I keep getting the message "Cannot complete your request because of a program error". I tried resizing the canvas and received the same error. I uninstalled (removing preferences and reinstalled the photoshop

  • Inbound delivery grouping

    Dear all, Can you please tell me if there is a possibility of grouping a inbound delivery( criteria same venodr , same route etc)? as we have for outbound delivery. If yes please explain Thanks in advance