1
0
Fork 0
forked from len0rd/rockbox

Patch #783877 by Gadi Cohen updated by Naftali Goldstein - Bidirectional text support for Hebrew and Arabic

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7292 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-08-08 19:23:28 +00:00
parent 1874a33298
commit 41a53d2c1c
10 changed files with 246 additions and 1 deletions

View file

@ -38,6 +38,7 @@
#include "fat.h" /* For dotfile settings */
#include "sleeptimer.h"
#include "powermgmt.h"
#include "bidi.h"
#include "rtc.h"
#include "ata.h"
#include "tree.h"
@ -278,6 +279,18 @@ static bool invert_cursor(void)
NULL);
}
/**
* Menu to reverse Hebrew and Arabic text according to BiDi algorythm
*/
static bool bidi_support(void)
{
return set_bool_options( str(LANG_BIDI_SUPPORT),
&global_settings.bidi_support,
STR(LANG_SET_BOOL_YES),
STR(LANG_SET_BOOL_NO),
set_bidi_support);
}
/**
* Menu to configure the battery display on status bar
*/
@ -1421,6 +1434,7 @@ static bool lcd_settings_menu(void)
{ ID2P(LANG_INVERT), invert },
{ ID2P(LANG_FLIP_DISPLAY), flip_display },
{ ID2P(LANG_INVERT_CURSOR), invert_cursor },
{ ID2P(LANG_BIDI_SUPPORT), bidi_support },
#endif
};