<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Mangal;
        panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Devanagari Sangam MN";
        panose-1:2 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Minion Pro";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.BasicParagraph, li.BasicParagraph, div.BasicParagraph
        {mso-style-name:"\[Basic Paragraph\]";
        mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        line-height:120%;
        text-autospace:none;
        font-size:12.0pt;
        font-family:"Minion Pro","serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">I am integrating Indic languages in my application but not aware how to make syllables.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Currently I am using cluster id to make syllable but it is failing for some case like-
<o:p></o:p></span></p>
<p class="BasicParagraph"><span lang="HI" style="font-family:"Mangal","serif"">स + ् + व + ा + स + ् + थ + ् + य
</span><span lang="EN-GB" style="font-family:"Cambria","serif"">= </span><span lang="HI" style="font-family:"Devanagari Sangam MN"">स्वास्थ्य</span><span lang="HI" style="font-family:"Cambria","serif"">
</span><span lang="EN-GB" style="font-family:"Cambria","serif"">in “Arial Unicode MS” font<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Here I am getting length = 6 from
</span><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black">fHbBuffer and
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black">cluster ids-<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [0]       {codepoint=7021 mask=10 cluster=0 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [1]       {codepoint=1431 mask=3 cluster=2 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [2]       {codepoint=1438 mask=7 cluster=2 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [3]       {codepoint=7021 mask=10 cluster=4 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [4]       {codepoint=7005 mask=11 cluster=6 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">+                      [5]       {codepoint=1425 mask=3 cluster=8 ...}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif"">on calling
</span><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black">hb_shape<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black">So I’m getting six characters and 5 syllables. But expected behavior is that the word should contain only 2 syllables “</span><span lang="AR-SA" style="font-size:12.0pt;font-family:"Devanagari Sangam MN"">स्वा</span><span style="font-size:12.0pt;font-family:"Cambria","serif"">”
 and “</span><span lang="AR-SA" style="font-size:12.0pt;font-family:"Devanagari Sangam MN"">स्थ्य</span><span style="font-size:12.0pt;font-family:"Cambria","serif"">”</span><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Please correct me if I’m using an incorrect approach to get the syllables.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Also guide me the correct way to identify the syllables from the values returned by hb_shape function.</span><span style="font-size:12.0pt;font-family:"Cambria","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Cambria","serif"">Vijendra Singh<o:p></o:p></span></p>
</div>
</body>
</html>