diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-18 20:41:06 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-18 20:41:06 +0000 |
commit | 229c7f9c84f17a47ce650e36c2dc8b682e8a33bc (patch) | |
tree | 52a3955a442a82c912bda24d8d1bac4c78ea4bcc /subreader.c | |
parent | d535890b50cbe4d33e89e7fb066ffff3be328b33 (diff) | |
download | mpv-229c7f9c84f17a47ce650e36c2dc8b682e8a33bc.tar.bz2 mpv-229c7f9c84f17a47ce650e36c2dc8b682e8a33bc.tar.xz |
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 <shacharr <at> gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13680 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <fribidi/fribidi.h> 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); |