<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Nirmala UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:8.0pt;
        margin-left:0in;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:8.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:8.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1214661591;
        mso-list-type:hybrid;
        mso-list-template-ids:-1628373682 -438669510 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Folks,<o:p></o:p></p>
<p class="MsoNormal">Unicode make it possible to write things in different languages.<o:p></o:p></p>
<p class="MsoNormal">For example, rather than this XML:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><Number_Students>42</Number_Students><o:p></o:p></p>
<p class="MsoNormal">a Bengali-speaking person can write this:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><<span style="font-family:"Nirmala UI",sans-serif">সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span>>42</<span style="font-family:"Nirmala UI",sans-serif">সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span>><o:p></o:p></p>
<p class="MsoNormal">Or, in a programming language, rather than this assignment statement:<o:p></o:p></p>
<p class="MsoNormal">              Number_Students = 42<o:p></o:p></p>
<p class="MsoNormal">a Bengali-speaking person can write this:<o:p></o:p></p>
<p class="MsoNormal">              <span style="font-family:"Nirmala UI",sans-serif">
সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span> = 42<o:p></o:p></p>
<p class="MsoNormal">That’s awesome.<o:p></o:p></p>
<p class="MsoNormal">But, but, but, … how come that universality doesn’t extend to digits?
<o:p></o:p></p>
<p class="MsoNormal">How come we can only use these digits: 0 (hex 30), 1 (hex 31), …, 9 (hex 39)?<o:p></o:p></p>
<p class="MsoNormal">Why, for example, can’t a Bengali-speaking person use the Bengali digits: Bengali digit 0 (U+09E6), Bengali digit 1 (U+09E7), …, Bengali digit 9 (U+09EF)?<o:p></o:p></p>
<p class="MsoNormal">Why, for example, can’t a Bengali-speaking person create XML such as this:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><<span style="font-family:"Nirmala UI",sans-serif">সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span>><strong><span style="font-size:13.5pt;line-height:106%;font-family:"Nirmala UI",sans-serif;color:black;background:white">৪</span></strong><strong><span style="font-family:"Nirmala UI",sans-serif">୨</span></strong></<span style="font-family:"Nirmala UI",sans-serif">সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span>><o:p></o:p></p>
<p class="MsoNormal">or write a program assignment statement like this:<o:p></o:p></p>
<p class="MsoNormal">              <span style="font-family:"Nirmala UI",sans-serif">
সংখ্যা</span>_<span style="font-family:"Nirmala UI",sans-serif">ছাত্র</span> = <strong>
<span style="font-size:13.5pt;line-height:106%;font-family:"Nirmala UI",sans-serif;color:black;background:white">৪</span></strong><strong><span style="font-family:"Nirmala UI",sans-serif">୨</span></strong><strong><span style="font-family:"Calibri",sans-serif"><o:p></o:p></span></strong></p>
<p class="MsoNormal">Let me explain why I assert that the Bengali-speaking person “cannot” do that.
<o:p></o:p></p>
<p class="MsoNormal">Numbers in an XML document or in a program are just strings and, to perform arithmetic operations on them, those string numbers must be converted to actual numbers. I looked at the source code for the C function (strtol) that converts strings
 to numbers and here is the key to how it converts a character digit to a number digit:<o:p></o:p></p>
<p class="MsoNormal">              digit_number = digit_character - '0’<o:p></o:p></p>
<p class="MsoNormal">Yikes!<o:p></o:p></p>
<p class="MsoNormal">That generates a number digit by treating the character digit as a number and subtracting the number corresponding to the character ‘0’. For example, if the character digit is ‘4’ (hex 34) then when we subtract ‘0’ (hex 30) we get the number
 4. Perfect! But ……… only if we allow European digits (0, 1, …, 9). Clearly, if we were to subtract ‘0’ (hex 30) from the Bengali digit 4 we do not get the number 4.<o:p></o:p></p>
<p class="MsoNormal">Thus I conclude:<o:p></o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraphCxSpFirst" style="margin-left:0in;mso-add-space:auto;mso-list:l0 level1 lfo1">
When expressing numbers, the only digits that can be used are the European digits<o:p></o:p></li><li class="MsoListParagraphCxSpLast" style="margin-left:0in;mso-add-space:auto;mso-list:l0 level1 lfo1">
Unicode is universal, but that universality does not apply to digits or numbers<o:p></o:p></li></ul>
<p class="MsoNormal">Obviously I am not understanding something correctly. Please help me to understand.<o:p></o:p></p>
<p class="MsoNormal">/Roger<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>