Sinhala support - Sri Lanka

Hi,
I am working on a project at the moment which has the requirement to be localised into Sinhala.
We are working with AS3, CS5 and the TLF, the text is being loaded in XML format.  We are using the font Iskoola Pota.
I have a sample piece of text in xml, I load it in and set the text property of a Textfield instance to the loaded text. The Zero-Width-Joiners (ZWJ) are NOT removed and the glyphs combine correctly (as per the XML), however the line breaks (Text Field wraps the text) in the middle of a word where ZWJ/ZWNJ are present.  The wrapping is what I expect to see as I am purley setting the text property of a clasic text field.
When I use TLF to create TextLine instances and add them to my container, the text breaks correctly - i.e. not in the middle of the word - however the ZWJs are removed causing the letters to be displayed individually (not joined).
This is the AS I am using for reference:
// create a line starting at the previous line (null, as non existant) and breaking at the width
                    var textLine:TextLine = textBlock.createTextLine(null, lineWidth);               
                    while (textLine)
                              // position the x
                              if (align == TextFormatAlign.CENTER) {
                                        // place this x at x location of the orig textfield + half its width minus half the textWidth of the new line
                                        textLine.x = (xPos + (lineWidth / 2)) - (textLine.textWidth / 2);
                              } else if (align == TextFormatAlign.LEFT) {
                                        // place this x at x location of the orig textfield
                                        textLine.x = xPos;
                              } else {
                                        // place this x at x location of the orig textfield + its width minus the textWidth of the new line
                                        textLine.x = (xPos + lineWidth) - textLine.textWidth;
                              // add the height of the text
                              yPos += textLine.height;
                              // if not the first line, add some space down
                              if (textLine.previousLine != null) {
                                        yPos += iVerticalLineSpacer;
                              } else {
                                        //add 12%
                                        // TODO - need to come up with a better solution here
                                        yPos += textLine.height * 0.12;
                              // position the y
                              textLine.y = yPos;
                              // add to sprite
                              container.addChild(textLine);
                              // create a line starting at the previous line (textLine) and breaking at the width
                              textLine = textBlock.createTextLine(textLine, lineWidth);                         
Does anyone have any insight into how to go about solving this issue?
Thanks for your time,
Dave

Hi daithi,
I can not quite understand your issue, could you please show you complement code, so I can see the effect of your issue, thanks. By the way, you use the FTE actually, not TLF.
I am not sure is this your case bellow?
package{
    import flash.display.Sprite;
    import flash.text.TextFormatAlign;
    import flash.text.engine.ElementFormat;
    import flash.text.engine.FontDescription; 
    import flash.text.engine.FontLookup; 
    import flash.text.engine.TextBlock; 
    import flash.text.engine.TextElement; 
    import flash.text.engine.TextLine; 
    public class Forum extends Sprite
        [Embed(mimeType="application/x-font", exportSymbol="iskpota", embedAsCFF="true", source="iskpota.ttf", fontName="iskpota")]
        private const iskpota:Class;
        public function Forum()
                var xPos:int = 0;
                var yPos:int;
                var align:String;
                var textBlock:TextBlock = new TextBlock();
                var lineWidth:int = 200;
                textBlock.content = new TextElement(
                    String.fromCharCode(
                        0x5185, 0x200D, 0x95A3, 0x5E9C, 0x304C, 0x300C, 0x653F, 0x5E9C, 0x30A4,
                        0x30F3, 0x30BF, 0x30FC, 0x30CD, 0x30C3, 0x30C8, 0x30C6, 0x30EC,
                        0x30D3, 0x300D, 0x306E, 0x52D5, 0x753B, 0x914D, 0x4FE1, 0x5411,
                        0x3051, 0x306B, 0x30A2, 0x30C9, 0x30D3, 0x30B7, 0x30B9, 0x30C6,
                        0x30E0, 0x30BA, 0x793E, 0x306E
                var elementFormat:ElementFormat = new ElementFormat();
                var font:FontDescription = new FontDescription();
                font.fontLookup = FontLookup.EMBEDDED_CFF;
                font.fontName = "Iskpota";
                elementFormat.fontDescription = font;
                textBlock.content.elementFormat = elementFormat;
                // create a line starting at the previous line (null, as non existant) and breaking at the width
                var textLine:TextLine = textBlock.createTextLine(null, lineWidth);
                while (textLine)       
                       // position the x
                       if (align == TextFormatAlign.CENTER)
                          // place this x at x location of the orig textfield + half its width minus half the textWidth of the new line
                            textLine.x = (xPos + (lineWidth / 2)) - (textLine.textWidth / 2);
                       } else if (align == TextFormatAlign.LEFT)
                         // place this x at x location of the orig textfield                           
                              textLine.x = xPos;
                       } else
                     // place this x at x location of the orig textfield + its width minus the textWidth of the new line
                            textLine.x = (xPos + lineWidth) - textLine.textWidth;
                      // add the height of the text
                       yPos += textLine.height;
                     // if not the first line, add some space down
                        if (textLine.previousLine != null)
//                        yPos += iVerticalLineSpacer;
                        yPos += textLine.height * 0.12;
                       } else
                       //add 12%
                     // TODO - need to come up with a better solution here
                              yPos += textLine.height * 0.12;
                    // position the y
                         textLine.y = yPos;
                     // add to sprite
                        this.addChild(textLine);
                     // create a line starting at the previous line (textLine) and breaking at the width
                         textLine = textBlock.createTextLine(textLine, lineWidth); 

Similar Messages

  • Language Installation of Sri lanka language Sinhalese, Sinhala

    Dear Gurus,
    We have requirement to perform Language installation for below three languages.
    1) Bahasa , Indonesia
    2) Sinhalese, Sri Lanka
    3) Vietnamese, Viet Nam
    I am able to find separate Language CD for "Vietnamese" but i am unable to find CDs for Bahasa or Sinhalese.
    Does any one have any CD number or have performed language installation for these earlier can throw some light on same?
    Warm Regards,
    Shravan

    In fact for base ECC6 there are separate medias for some 'extra' languages...
    At least there is one for Vietnam.
    I did not found the two others. At least you can find the lang. key in note
    73606 - Supported Languages and Code Pages
    Maybe you should open a message to support with comp. BC-I18
    Regards

  • Hi, I got a Iphone 5, model A1429. Does this model supports 4g/LTG in Sri lanka?

    hi, I got a Iphone 5, model A1429. Does this model supports 4g/LTG in Sri lanka?

    Hello, Monster Emi. 
    Thank you for visiting Apple Support Communities. 
    Here are a couple articles that you may find helpful with your question. 
    Identifying iPhone models
    http://support.apple.com/kb/ht3939
    iPhone and iPad: Using cellular networks while in another country
    http://support.apple.com/kb/ht1807
    Cheers,
    Jason H. 

  • When will Apple Maps will support in sri lanka?

    I wanted to know when will apple give maps to sri lanka.i can't see any detail in map in sri lanka.please apple improve your maps app in sri lanka.Any thoughts?

    You are not addressing Apple here just users.
    Try here instead
    http://www.apple.com/feedback/ipad.html

  • IOS 5.0.1 lost Sinhala support?

    When I first got the 4S earlier this month, as soon as I activated it, it activated Sinhala (Sri Lanka) as the localization option. I set it to UK English, but ever since upgrading to 5.0.1 I don't have the option to enable Sinhala again. Tamil (Sri Lanka and India) are still available.

    Update! I took some general advice on the forum and rebooted my iPhone a few times. I also asked the phone to "forget this device" and attempted to reconnect several times. It would load my contacts and then proceed to disconnect from the phone and I would also see a message on the Bluetooth page that the BlueAnt ST3 was not supported.
    I gave up.
    I left the two devices plugged into my computer for power overnight, laying side by side on the table.
    They found each other. The next day they connected and have been communicating ever since.
    Perhaps until the next IOS upgrade? But a happy ending in the interim

  • How to make iBooks available in iBookstore for Sri Lanka and India?

    Does anyone know how to make iBooks available for purchase in iBookstore for Sri Lanka and India?  I have tried going through iTunes Connect to add regions, but it doesn't give me the option to add any more.  Thanks

    ali.basheer.ahamed wrote:
    Can I know How to add to the Indian store please. I have been trying the same - unable to add.
    Consult this list to see whether paid books are available in those countries:
    http://support.apple.com/kb/TS3599
    If not, you have to use another store, like Kindle, Nook, Kobo, Googlebooks, or Sony.

  • I cannot register my applecare protection plan from sri lanka

    the country selector does not include sri lanka when i try to register my applecare protection plan

    Thought I'd post a link to perhaps help locate authorized sales, service and other affiliated
    Apple providers; since from where I am, the Support pages and links sometimes go askew,
    or to places I don't need (when looking for other answers, not my own) or have the sites I
    do need lock into HongKong Chinese;  my access to Apple Support main site did yesterday.
    So I went offline for a time, after reporting the incident and URLs to Apple website Feedback.
    See this page, and choose Sales or Service box, for name of countries "Other Asia"
    https://locate.apple.com/asia/en/
    Sri Lanka is listed. You will have to enter a city and product series to see who the authorized
    sales and service support companies are in your region. They should appear with contact
    information and in a map of the area where they exist. Try different town names if one you
    choose does not indicate a match. Some services or retail locations may not offer all of the
    usual retail Apple items (as seen elsewhere or in online Store.) A retail authorized Apple
    sales &/or service independent company should be able to direct you. The authorized Sales
    agent or business should also be able to sell the AppleCare plan, for items they sell there.
    In general terms, the path used to find countries not listed in the main areas online follows
    a convoluted path of trial & error, such as this:
    You may be able to look into these contact site (links) and then go into Other countries if
    the site default again leaves you in US sites without access to your Region or Country.
    Third-party independent resellers and service companies should be listed among those
    locations where no Apple Store (official) exists; I've found some in unlikely places before.
    See all worldwide telephone support numbers
    Contact a mobile carrier
    Find an Apple Authorized Service Provider
    Visit an Apple Retail Store
    Hopefully this helps you, or someone who finds they have a similar problem in finding any
    information about their access to Apple authorized sales, service, etc not in Store lists.
    (This discussion has been relocated or changed by the hosts since yesterday)
    In any event...
    Good luck & happy computing!

  • I upgrade my system to Mavarics. When I get register for icloud Sri Lanka not there? any reason?

    I just installed Mavaricks OS. Then I was run iCloud in Mavaricks. So when I'm going to install 'find my mac', country code Sri Lanka not there? any reason for that?

    when you go to icloud you will not see pictures it is normal. Check that out to see what photostream does.
    iCloud: Photo Stream FAQ - Support - Apple

  • Upgrade to paid account in Sri Lanka

    Hi
    I'm from Sri Lanka and I cannot uggrade to a paid account as the country is not shown on the list. I need to save a form I created as a PDF.. Do I have any other way I could do it ?

    Hi,
    The only workarounds at this time are:
    1. Purchase your upgrade using a credit card with a billing address from a supported country. See the following document:
    http://forums.adobe.com/docs/DOC-1375
    2. Purchase Adobe Acrobat XI.
    Regards,
    Brian

  • HT4623 when we can update for IOS 7 country from Sri Lanka please let us know

    hi ,
    when we can update for IOS 7 in Country Sri Lanka,

    If you have iPhone 3GS, you cannot use IOS7 this fall. Only iPhone 4, iPad2 and iPod touch 5th gen or later is supported.
    http://www.apple.com/ios/ios7/features/

  • Google hangout is not available in sri lanka apps store

    Google hangouts also known as GTalk is not available for some countries like sri lanka where i live. but that is available in singapore appstore. just need to know whether that is ignored by apple or some other parties .
    Many Thnaks, Sanji

    Thanks Dah.Veed,
    readers can find the hangouts support forum below.
    https://productforums.google.com/forum/#!categories/hangouts/how-do-i/messaging/ ios-mobile

  • Here Drive + Navigation Not available in Sri Lanka

    Hi 
    im using my lumia 810 in Sri lanka , but with here Drive + i can see the Places and everyting as Previous but when i navigate it says " YOUR ROUT RUNS THROUGH A COUNTRY ORARIA WHERE NAVIGATIONISNT AVAILABLE YET"
    how can i fix this isuue , i desperatly need navigation as i dont know the country  
    Solved!
    Go to Solution.

    I am a Sri lanka and I was using Nokia 5800 ealier. It was supporting navigation in Maps. But Recently I baught Lumia 820 and Now it won't work.
    I assume Sri Lanka is a small country and will ease Nokia to Map roads here very soon and give your customers the maximum benifits.

  • Iphone 5  LTE (4G) isNow working in Sri Lanka

    Apple
    iphone 5  LTE (4G) is NOW working in Sri Lanka

    There are no supported carriers at all in Sri Lanka, much less carriers that support LTE on the iPhone there.
    You can't overcome this until your carrier has their LTE network tested and certified as compatilbe by Apple and a carrier update is issued to support it.

  • My face time isn't working? I buy this mobile from but now I'm in Sri lanka

    I am from Sri lanka, My facetime isn't working? How to fix it please?

    From this article, Wireless carrier support and features for iPhone in the Middle East - Apple Support
    see, this note. FaceTime may be unavailable if your device originates from this region and becomes unlocked or is used in another country.

  • HT201401 Unable to Activate Factory Unlocked AT&T iPhone 4s in SRI LANKA

    Unable to Activate Factory Unlocked AT&T iPhone 4s in SRI LANKA. Getting a 3G Signal But This Msg Pops Up
    "SIM not valid; Only Compatible SIM Cards from a supported carrier may be used to activate iPhone"

    Sorry to tell you this, but that phone is NOT unlocked. It's still locked to AT&T. ONLY AT&T can authorize unlocking it. Contact them and find out if you qualify.

Maybe you are looking for

  • Re-installation and download after PC crash

    I bought Adobe Acrobat in December 2011 and I have had  my desktop PC crash last week. I now have a new dektop and would like to download and re-install the purchased product again. Is there any possibility of doing this without having to purchase it

  • How to get email alerts ??

    Hi all, I have my work email account in Office 365, I have configured the account in my iPhone 4 running 7.1.1 & it's working fine. But i have a problem here, i use outlook at Work & i have created folders & folder rules for different people working

  • Cl_abap_structdescr= create causes CX_SY_STRUCT_COMP_Ndump for invalid char

    Hello experts, when generating a copy of a system generated ITAB with RTTI/C I get a CX_SY_STRUCT_COMP_NAME  dump for invalid character. The error is caused at statement: go_sdescr_new  = cl_abap_structdescr=>create( gt_components ). Dump excerpt: Th

  • Group Policy Preferences - Internet Settings - Trusted Sites

    hi all I can't set Trusted Zone (Site) with GPO Preferences - Internet Settings because it is grey? Chris

  • TV shows sorting issues

    Hi all, I have couple of my favourite TV Shows in iTunes, and while iTunes keeps all my tv shows episodes sorted perfectly well (season#, than episode#) when I sync them to my iPhone the sorting is gone; I have the episodes in random(?) order, furthe