How to highlight Urdu Characters

i write a code that search for a sub string and highlight it with html markup <b><b/>
        if(originalString.contains(searchString)){
            searchString=originalString.replaceAll(ctxt, "<b>"+searchString+"</b>");
            out.println(searchString);
        }it works well with English, but if i use URDU (similar to Arabic) it break
[Please see it in image|http://9154459373931442381-a-1802744773732722657-s-sites.googlegroups.com/site/faswoongar/Home/porb.PNG]
there red one shows the break and green show how it should be.
Any suggestion or help would be greatly appreciated.

I don't think this is a problem of String manipulation, but rather of HTML/Rendering.
Many scripts render some characters differently based on other characters nearby (it also happens in latin scripts, but less noticably, see ligatures).
The problem seems to be that when you separate the two characters (for example with a <b> tag), then the rendering engine won't know that it should use a ligature.
Unfortunately I don't know how to highlight parts of the word in this case, you'll probably need to highlight the full word in this case.

Similar Messages

  • How to use urdu characters in forms6i

    I use forms6i as frontend and oracle 8i and 9i as database.I want to input URDU characters in text item using form6i and want to store the same in databse.Here majority of bussiness and oranizational data is stored in files using software inpage which maps keyborad keys to URDU font.Any one can help me how to use the same in text item using form6i bulider.

    Whenever I have trouble with fonts from a different language I set the type in Illustrator, convert the type to outlines, then import the AI file into AE as a composition.
    Sometimes setting the type in Photoshop has also helped.
    If you must have the fonts so you can use text animators try looking for OT fonts that fill the bill. Open OpenType fonts are a lot less problematic than Post Script or True Type fonts. Take a look HERE for some sources. I haven't checked out any of the fonts listed but it looks promising.
    dear the main problem is keyboard in INPAGE2004 we use standard Phonetic keyboard and link which you gave it download the fonts and i copied it brings the urdu but not correct urdu suppose if we make a sentance (my name is chimi) in english it is ok and when i type it for urdu it brings different urdu wording not the correct wording, it type different type of urdu characters which makes no sense. It is possbile if i found a font which give me the correct wording as Phonetic keyboard give me in AE,

  • How to highlight Chinese characters?

    Only English and numeric characters can be highlighted!

    Wait for Adobe Reader 10.4 for iOS that has Better Support for Selecting and Highlighting Asian Text.
    But, I have long waiting for Apple’s App Review process.
    Ask to Adobe,
    Do you have any information?

  • How to display special characters in APEX Classic Report column

    Ref: Thread: How to display newline characters as new lines
    Version: APEX 3.2
    Hi,
    I have created an classic SQL Report with one of the columns being a decode that gives a value 'Post'(the value should be highlighted in Red) on one condition and 'Pre' on another. I have followed the advice given in the page (URL provided above) , i.e. I have changed Strip HTML to 'No', changed Display as to 'Display as text (escape special characters, does not save state)'. I have also passed this value back to the same page to be stored in a page item each time a link (another column in report) in report is clicked. I have tried passing it as #DEADLINE# and \#DEADLINE#\. The issue I face is, instead of the value being highlighted in Red, it gets passed back as a string holding the value 'Post'. Is there any way I can get this to display as it should without the Strip HTML being changed to 'Yes'.
    Thanks very much.
    Rohi
    Edited by: Rohi on 18-Jul-2012 04:21

    876651 wrote:
    Hi,
    Thanks for your response.
    I am trying to display a page item that is derived from a report column based on a click on the URL link (*view >*>)
    This page item (here, it is Manager_ID) should ideally be highlighted when a particular condition is satisfied (achieved using a DECODE in the report).
    But it is not displayed like it should be.
    I do not want the value to be displayed along with the html tags as a string.
    I want the html tags to take effect and highlight the value within it.
    Initially, I had set Strip HTML to Yes and the value was returned without any highlighting .
    So I changed it to 'No' and and it contained the html tags.
    I am not sure what setting in APEX Report Attributes can help me achieve that effect I want.None of the report settings are relevant. They affect the rendering of the report and none of the columns you were changing the properties of were actually rendered.
    You can't pass HTML and CSS around in URL parameters.
    I suggest you pass *2* values in the column link: the MGR ID and a simple class or colour value computed by the DECODE in the report. I've suppressed the first version of the report and created a new one that does this:
    decode(dept.deptno, '30', 'c00', '000') highlight The link column now passes the MGR ID and the HIGHLIGHT colour (red when the condition is satisfied and black when it is not).
    I created another hidden and protected page item <tt>P0_HIGHLIGHT</tt> as the target for the highlight value, and used the Pre/Post Element Text properties of the <tt>P0_G_MGR</tt> to wrap it in a <tt>span</tt> whose colour is changed using the <tt>P0_HIGHLIGHT</tt> value as a subtitution string:
    <span style="color: #&P0_HIGHLIGHT.;">Having done that, I still don't really get the requirement here. I'm sure that given the full picture I'd be using a completely different approach...

  • How To Install Urdu Fonts and Use in Form

    How to work with urdu fonts and use in form ...

    Do you have a problem with it or are you looking for a guide?
    If the latter is the case you should probably take a look at Note 314074.1. It talks about character sets in Forms. You can use UTF-8 in Forms and in the database. I assume urdu characters are in utf-8?
    There was a problem with urdu in win2k some time back. Is that what you are using?

  • How to highlight a line in a text stream and position the cursor at the end.

    I would like to select a line in a text control data stream, highlight the text, and place the cursor at the end of the line so that the text control can be edited at that point.

    Depends on what you mean by "highlight". If you mean highlight in the sense of when you use the mouse to select text, then you can't do that and then place the cursor at the end, since that would effectively "unhighlight" the text. You need to use a different kind of "highlight", like turning the text bold or something. This KB article talks about highlighting particular characters: How Do I Highlight Particular Characters in a String Control?
    See attached for simple example. Modify as needed.
    Attachments:
    Text Select.vi ‏19 KB

  • How to use urdu language in AE cs3

    Friends
    i have AE CS3 English edition. but i want to use URDU Language in it as text.
    i dont know the way how to use urdu language in AE CS3.
    Cas any body help in out this problem. i will be thank full to u.
    very thanks in advance.
    Regards.

    Whenever I have trouble with fonts from a different language I set the type in Illustrator, convert the type to outlines, then import the AI file into AE as a composition.
    Sometimes setting the type in Photoshop has also helped.
    If you must have the fonts so you can use text animators try looking for OT fonts that fill the bill. Open OpenType fonts are a lot less problematic than Post Script or True Type fonts. Take a look HERE for some sources. I haven't checked out any of the fonts listed but it looks promising.
    dear the main problem is keyboard in INPAGE2004 we use standard Phonetic keyboard and link which you gave it download the fonts and i copied it brings the urdu but not correct urdu suppose if we make a sentance (my name is chimi) in english it is ok and when i type it for urdu it brings different urdu wording not the correct wording, it type different type of urdu characters which makes no sense. It is possbile if i found a font which give me the correct wording as Phonetic keyboard give me in AE,

  • How to print Arabic characters in Oracle BI Publisher report

    Dear Experts,
    Kindly suggest me how to print arabic characters in BI Publisher.
    Regards,
    Mohan

    see link
    https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to highlight/indicate particular tree Node in Tree UI element

    Hi All
    Can anybody let us know how to highlight/indicate specific node in a tree struture.
    currently i am able to display the tree struture with all the nodes & elements but it is always tasking firstnode as highlighted one or indicated one.
    if i want to highlight specific node in a tree struture...what was the procedure or any sample code then it would be great help to us.
    Thanks
    Trisha rani

    Hi Krishna
    Thanks for your reply
    I displayed the tree structure and i want to highlight specific parent node/child element , what was the sample code??
    for example my tree was displayed in the below struture and at the runtime specific child node i wanted to be highlighted i want to make selectable particular nodeType......
    Can you pls send sample codee code??
    my requirement
    A
    A1
       A2
       A3
    B
    B1      
       B2
       B3
       B4
       B5     
    now i want to make selectable or highlighted B4,B5 etc  or A2,A3 at runtime.
    The other guy who replied for this thread it is working for Parent nodes to make highlighted  like it is working for parent nodes which is have child nodes. i am able to hightlight at runtime for Nodes A,B etc .
    Now i want to highlight or make selected one for B4,A3 etc, pls provide sample code??
    it  would be great help to us
    Thanks
    Trisha Rani

  • Please give me idea how I highlight the gird row which have

    Sir
    I have gird with 5 column
    Vno
    Code
    Dept
    Date
    Amount
    Sir my need is which record have above 5000 amount that color read and other color blue
    It means above 5000 highlight in grid
    Please give me idea how I highlight the gird row which have above 5000 maount
    Thank
    aamir

    PROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
    v_Feld VARCHAR2 (30);
    v_Item VARCHAR2 (61);
    v_Block VARCHAR2 (30);
    BEGIN
    v_Block := :SYSTEM.CURSOR_BLOCK;
    v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
    WHILE (v_Feld IS NOT NULL) LOOP
    v_Item := v_Block || '.' || v_Feld;
    Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
    v_Feld := Get_Item_Property (v_Item, NEXTITEM);
    END LOOP;
    END;

  • How to highlight the messages in the WDA?

    hi experts,
                     Iam new to Webdynpro.i just want to know how to highlight the texts displayed . like BOLD,italic etc and also colors.
    Regards,
    murthy.

    I dont think you have it via standard message area. Probably you can have a TextView UI element and use the properties Design and semanticColor to achieve this. If you have a contextNode , thats mapped to the texview and message manager writing text to this node. Solution should work.
    Greetings
    Prashant

  • How to show Greek characters in Italic style

    How to show Greek characters in Italic style
    Hi all, I'm tryng to resolve a problem with the Greek characters
    I need to display labels in two languages, english or greek inside my report.
    At the beginning of the report I have a placeholder with the xml code : *<?param@begin:p_language?>*, so I can understand inside my report if the user chose the Greek or English, and then I have many placeholders (labels) which have to be written in Greek or English.
    If the language chosen is English, I don't have any problem to show my labels bold or italic in every fonts
    Inside the placeholder I wrote the following code:
    *<?xdofx:if $p_language = 'Ελληνικά' then 'Οργανισμός' else if $p_language = 'Αγγλικά' then 'Organization' end if?>*
    I can chose font, style and bold/not bold directly from Word and when I run the report in pdf I see exactly what I chose.
    If the language chosen is Greek....I see always the label in Arial, NOT BOLD and NOT ITALIC...
    In order to see Greek characters BOLD:
    a) I added (under the ADMIN tab/Runtime Configuration/Font Mappings/ ) a font named Arial and I addeda target Font named Arialbd.ttf under the directory: D:\Oracle\Oracle_Homes\BIP_101341\jdk\jre\lib\fonts
    b) I changed the font (from word) to Arial
    Now, ONLY with tha ARIAL font I can see my labels in greek bold, but I can't still see them in italic style.....
    So, I tried to force these condition inside the placeholder with the following code:
    *<?if:$p_language = 'Ελληνικά'?><xsl:attribute xdofo:ctx="inlines" name="font">Times New Roman</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-style">Italic</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="color">red</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-weight">bold</xsl:attribute>Οργανισμός<?end if?>*
    ...but I continue to see the labels in Greek only bold, red but not in Italic Style......
    Also adding another font called Arialbi.ttf (Arial bold Italic)...I can't see my labels in Greek bold with Italic Style....
    Anybody had the same problem with another alphabet different from the latin one ???
    Any help will be appreciated
    Thanks in advance
    Alex

    Hi Chris,
    Thanks for your reply.However I still have some problems.
    I couldnt get jpdk 3.0.9.0.4 version the latest version that I
    got was jpdk 3.0.9.0.2.
    I tried the 3.0.9.0.2 version and it gave me the below error.
    Error-
    sun.io.MalformedInputException
         at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java,
    Compiled Code)
         at java.io.InputStreamReader.convertInto
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.fill
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.read
    (InputStreamReader.java, Compiled Code)..........
    Can you guide me regarding this ???
    Regards,
    Mandar.

  • How to highlight a text in Pqges?

    Hi, does anyone knows how to highlight a text in Pages for iPad??

    If you would like to see this very basic function added to Pages for iOS in the future, let the good folks at Apple know of your needs:
    http://www.apple.com/feedback/

  • How to escape special characters in Simple Transformation

    Hi Experts,
    I have got a problem to get a well formed xml document from the below simple transformation. The content of maktx contains
    special characters like & <, which are not allowed in a well formed XML-Document. But the result of the Simple Transformation
    contains this charcters even after the transformation as you can the in the result below. Has anyone a hint how to escape the
    characters included in the maktx.
    The transformation for maktx, should be something like
    Before: Material & < TEST
    After: Material &amp &lt TEST
    Report wihich calls the simple transformation
    types:
    BEGIN OF t_mat,
       matnr type matnr,
       maktx type maktx,
    end of t_mat.
    Data:
      mat type t_mat,
      xml_stream type xstring.
    START-OF-SELECTION.
    mat-matnr = '4711'.
    mat-maktx = 'Material & < Test'.
    CALL TRANSFORMATION ztest_st2
            SOURCE mat = mat
            RESULT XML xml_stream.
    CALL FUNCTION 'DISPLAY_XML_STRING'
      EXPORTING xml_string = xml_stream.
    Simple Transformation
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="MAT"/>
      <tt:template>
        <Leistungsschild>
            <CHARACT> MATNR </CHARACT>
            <CHARACT_DESCR> Materialnummer </CHARACT_DESCR>
            <VALUE tt:value-ref="MAT.MATNR"/>
            <CHARACT> MAKTX </CHARACT>
            <CHARACT_DESCR> Materialkurztext </CHARACT_DESCR>
            <VALUE tt:value-ref="MAT.MAKTX" />
        </Leistungsschild>
      </tt:template>
    </tt:transform>
    RESULT
    <?xml version="1.0" encoding="utf-8" ?>
    <Leistungsschild>
      <CHARACT>MATNR</CHARACT>
      <CHARACT_DESCR>Materialnummer</CHARACT_DESCR>
      <VALUE>4711</VALUE>
      <CHARACT>MAKTX</CHARACT>
      <CHARACT_DESCR>Materialkurztext</CHARACT_DESCR>
      <VALUE>Material & < Test</VALUE>   </Leistungsschild>

    Hi Sandra,
    First of all thaks for your quick answer to my problem.
    I see what you mean and get the same result, if I am using data-type string instead of xstring. But the recommendation in the XML-Books of SAP is to use XSTRING to save memory and circumflex problems between Codepages, when writing the XML-Stream to a filesystem.
    As you can see in the code abvoe I am using a SAP-FM to display the XML-Stream and this FM works only with XSTRING´s,
    that is one reason why I don´t understand that it displays it in the wrong way.
    Even the Debugger shows me for the XSTRING the wrong result. Does all that mean that the escaping will not be applyed if you are working with XSTING´s??

Maybe you are looking for

  • IPod 160 GB unworking wheel

    My iPod's control wheel is not working pretty well: it often stops while I'm scrolling files. I can't understand if this is due to the wheel itself, or maybe that's because of Hard Disc loadings that slow down the system (?? Is that possible??). I al

  • Obtaining CachedRowSet from web service in Axis

    Hi, I could not find any method to pass a CachedRowSet query result from server side of the web service to the client. I want the transleted type also be a resultset. Does anyone know the basic solution? I am using Axis and Tomcat as server.

  • Semaphore problem upon reinitializing VI

    Dear all,  I am not a Labview expert and I'm encountering a problem here. I've searched the web and these forums, nothing came up though.  So here is the thing: I used labview's suggestion to reinitialize all values in my program to their default val

  • 'HTTP Code 404  : Not Found' in SE80

    Hi, I have consumed WSDL using consumer proxy in SAP system. Now I am trying to test this proxy. But, getting error Error when calling SOAP Runtime functions: SRT: Unsupported xstream found: ("HTTP Code 404  : Not Found") I have maintained correct UR

  • Color cast on prints after upgrade

    We had an established balance between Elements and our HP 7000 Office jet printer. We got a new computer running Win.8.1 and upgraded from Elements 10 to E. 13 ( for RAW support)  We've also been trying to find a replacement paper for  Ilford Pearl a