From 229c7f9c84f17a47ce650e36c2dc8b682e8a33bc Mon Sep 17 00:00:00 2001 From: faust3 Date: Mon, 18 Oct 2004 20:41:06 +0000 Subject: correctly display the commas of most hebrew subtitles on the left side of the sentence with fribidi, make the old behaviour optional patch by Shachar Raindel gmail.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13680 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'subreader.c') diff --git a/subreader.c b/subreader.c index 0a0292d283..ad0ea9f89b 100644 --- a/subreader.c +++ b/subreader.c @@ -33,6 +33,7 @@ char *sub_cp=NULL; #include char *fribidi_charset = NULL; int flip_hebrew = 1; +int fribidi_flip_commas = 0; #endif extern char* dvdsub_lang; @@ -1208,7 +1209,7 @@ subtitle* sub_fribidi (subtitle *sub, int sub_utf8) break; } len = fribidi_charset_to_unicode (char_set_num, ip, len, logical); - base = FRIBIDI_TYPE_ON; + base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; log2vis = fribidi_log2vis (logical, len, &base, /* output */ visual, NULL, NULL, NULL); -- cgit v1.2.3