[Libreoffice] [PATCH] Add numbering type in persian word.

Eike Rathke ooo at erack.de
Sun Aug 28 09:14:57 PDT 2011


Hi Mohammad,

On Sunday, 2011-08-28 16:57:29 +0200, Stephan Bergmann wrote:

> On Aug 28, 2011, at 2:12 PM, Mohammad Elahi wrote:
> >  static sal_Unicode table_PersianWord_decade1[][MAX_LEN]={
> >    {0}, // 0
> >    {0x06cc, 0x06a9, 0}, // 1
> > ...
> > };
> > 
> > Although it uses more memory, but it is less vebose.
> > What's your opinion?
> 
> Should be OK, too (as the difference in lengths of the individual
> entries is not too large)---I would make it an explicit "7" in such
> a case, though, instead of a #define MAX_LEN 7.

Yes, that's fine, and just adapt the constant for each table to the
longest entry in that table. Please do a   git pull -r   on the core
repository before working on that to get the current version, if you
didn't already.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110828/628893e5/attachment.pgp>


More information about the LibreOffice mailing list