Re: Persian numbers in Glibc
Hello Mohsen, Does Glibc support persian numbers? Yes. This is what 'I' flag defined for. (see printf manual part 3) You can change your '%d' and '%f' with '%Id' and '%If' in printf parameters like this: printf (%Id, 12345); And you will see Persian digits if you set you locale to fa_IR. For reading localized digits, it is not implemented correctly but it is under development. Is there any application in linux supporting persian numbers?Should this support be added to any application that is supposed to support persian language? Gedit is going to be the first application which support Persian digits. It would be in the next version. Hamed ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Converting from Zarnegar and Vazhenegar to Word
Hi, We have several vazhengar and zarnegar files which need to be converted to word. Opening Zarngegar DOS in Zarnegar Windows works, except all the footnotes are lost. Does anyone know of anyone in Iran or elsewhere who does this? The people who typed the files are willing to pay. Farhad Please reply to farhad at ibexpub dot com ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: Persian numbers in Glibc
On Sun, Sep 12, 2004 at 09:30:15AM -0700, Skip Tavakkolian wrote: Does Glibc support persian numbers? Yes. This is what 'I' flag defined for. (see printf manual part 3) You can change your '%d' and '%f' with '%Id' and '%If' in printf parameters like this: printf (%Id, 12345); And you will see Persian digits if you set you locale to fa_IR. If think you wanted to say %lc -- the length modifier l is applied to char type: printf(%lc, 0x06f3);// arabic-indic digit 3 No. I exactly meant 'I' flag which does what he wants. Check printf man page part 3 and look for 'Arabic' or 'Persian'. Hamed ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: Persian numbers in Glibc
Does Glibc support persian numbers? Yes. This is what 'I' flag defined for. (see printf manual part 3) You can change your '%d' and '%f' with '%Id' and '%If' in printf parameters like this: printf (%Id, 12345); And you will see Persian digits if you set you locale to fa_IR. If think you wanted to say %lc -- the length modifier l is applied to char type: printf(%lc, 0x06f3); // arabic-indic digit 3 No. I exactly meant 'I' flag which does what he wants. Check printf man page part 3 and look for 'Arabic' or 'Persian'. I see. The font I use shows lower case 'L' the same as upper case 'I'. For what it is worth, according to ISO C99, if __STDC_ISO_10646__ macro is defined, you can use the l (lower case 'L') modifier for char (%c) format to print a UNICODE char: Is the upper case i (eye) for printf in the ISO C standard? glibc 2.2 adds one further flag character. I For decimal integer conversion (i, d, u) the output uses the locale's alternative output digits, if any. For example, since glibc 2.2.3 this will give Arabic-Indic digits in the Persian (`fa_IR') locale. ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: Persian numbers in Glibc
Actually Qt already does that. Otherwise all Hamed said is right and precise. On Sun, 12 Sep 2004, mohsen ali momeni wrote: Hello everyone, Does Glibc support persian numbers? i mean does it interpret persian numbers as real numbers? As i tested ,it's not so , i mean there is no support for persian numbers in glibc.am i right? Is there any application in linux supporting persian numbers?Should this support be added to any application that is supposed to support persian language? regards, Mohsen --behdad behdad.org ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing