Mercurial > mplayer.hg
diff subreader.c @ 13679:59bb11213d11
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>
| author | faust3 |
|---|---|
| date | Mon, 18 Oct 2004 20:41:06 +0000 |
| parents | 1a4b6e575484 |
| children | 326d3bd9dba6 |
line wrap: on
line diff
--- a/subreader.c Mon Oct 18 20:30:07 2004 +0000 +++ b/subreader.c Mon Oct 18 20:41:06 2004 +0000 @@ -33,6 +33,7 @@ #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 @@ 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);
