summaryrefslogtreecommitdiffstats
path: root/subreader.c
Commit message (Collapse)AuthorAgeFilesLines
* bzero is deprecated patch by Gianluigi Tiesi <mplayer at netfarm.it>faust32005-02-041-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14643 b3059339-0415-0410-9bf9-f77b7e298cf2
* document global variables used with fribidifaust32004-10-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13681 b3059339-0415-0410-9bf9-f77b7e298cf2
* correctly display the commas of most hebrew subtitles on the left sidefaust32004-10-181-1/+2
| | | | | | | | 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
* This time is a patch to improve subtitle alignment management. Itfaust32004-09-151-5/+37
| | | | | | | | | | | implements SSA alignment styles; note that alignment for SSA files is not actually supported, but for SAMI files (which use the same alignment codes) it is. patch by Salvatore Falco <sfalco at studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13344 b3059339-0415-0410-9bf9-f77b7e298cf2
* subtitle autodetection regardles of case (bug #65), patches Michal Svec ↵faust32004-09-021-1/+1
| | | | | | <rebel at atrey.karlin.mff.cuni.cz> and Reynaldo H. Verdejo Pinochet <reynaldo at opendot.cl> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13230 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixes a crash and unchecked string-handling in ENCA code.reimar2004-07-281-38/+21
| | | | | | | Also does a bit of cleanup. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12910 b3059339-0415-0410-9bf9-f77b7e298cf2
* string handling security fixesdiego2004-06-251-1/+1
| | | | | | | | patch by Nicholas Kain, Alexander Strasser <eclipse7@gmx.net> reviewed by Pontscho, Alex, Rich git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12647 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1e6lhenry2004-05-211-5/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12494 b3059339-0415-0410-9bf9-f77b7e298cf2
* more cola for jindrichrfelker2004-05-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12456 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000000l for sig11 without -subcp!!! (and 1l for my first commit :)rfelker2004-05-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12450 b3059339-0415-0410-9bf9-f77b7e298cf2
* ENCA support (http://trific.ath.cx/software/enca/)henry2004-05-081-4/+85
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12444 b3059339-0415-0410-9bf9-f77b7e298cf2
* MPL2 subreader, patch by Cezary Jackiewicz (cjackiewicz@poczta.onet.pl)alex2004-04-061-1/+30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12139 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip {...} parts in SAME subs, patch by Salvatore Falcoalex2004-04-061-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12137 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix the PJS (aka dunnowhat) subtitlesattila2004-01-291-7/+38
| | | | | | | patch by Salvador Eduardo Tropea <salvador@inti.gov.ar> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11874 b3059339-0415-0410-9bf9-f77b7e298cf2
* prevent subreader from segfaulting when sami subs dont haveattila2004-01-241-3/+14
| | | | | | | | a <P> at the beginning. patch by Fabien Tassin <fta+mplayer@sofaraway.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11839 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lluran2003-11-191-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11497 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub autoloading fix for windowsfaust32003-10-091-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11063 b3059339-0415-0410-9bf9-f77b7e298cf2
* subtitles priority calculation correctionatlka2003-09-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10933 b3059339-0415-0410-9bf9-f77b7e298cf2
* corrected utf8 files autoselectionatlka2003-09-221-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10930 b3059339-0415-0410-9bf9-f77b7e298cf2
* Subtitle alignment & smart splitting by Salvatore Falcohenry2003-09-211-2/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10917 b3059339-0415-0410-9bf9-f77b7e298cf2
* Jacosub files can have the extension '.js' too. Patch by Vladimir Mosgalin ↵alex2003-09-021-1/+1
| | | | | | <mosgalin@VM10124.spb.edu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10802 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support for case insensitive string matching in SAMI subtitle files. Patch ↵mosu2003-08-251-4/+18
| | | | | | by Bruno Lecointre. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10693 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixes FriBiDi support and extends it with configure options. Patch by ↵alex2003-08-171-2/+5
| | | | | | Raindel Shachar <raindel@techunix.technion.ac.il> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10650 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lalex2003-08-101-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10556 b3059339-0415-0410-9bf9-f77b7e298cf2
* another attempt to fix the subtitle searchinghenry2003-08-091-6/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10552 b3059339-0415-0410-9bf9-f77b7e298cf2
* some more cola - misplaced breakhenry2003-08-081-8/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10545 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1, micro-speedup 2, fixed 10l: only prefer utf8 if iconv is presentalex2003-07-281-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10495 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix against dummy solaris sprintf, bug reported by Gotz Waschkalex2003-07-271-4/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10487 b3059339-0415-0410-9bf9-f77b7e298cf2
* ASS supporthenry2003-07-201-2/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10451 b3059339-0415-0410-9bf9-f77b7e298cf2
* always treat .utf* files as UTF-8atlka2003-07-011-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10357 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_utf8 fiddlingatlka2003-07-011-6/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10355 b3059339-0415-0410-9bf9-f77b7e298cf2
* small correction of sub_utf8 restoring between reading sub filesatlka2003-07-011-11/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10354 b3059339-0415-0410-9bf9-f77b7e298cf2
* prefer UTF-8 encoding subs and automatically recognize them by suffixatlka2003-06-271-3/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10341 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10Lhenry2003-06-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10337 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes by Dominikalex2003-06-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10237 b3059339-0415-0410-9bf9-f77b7e298cf2
* unleakalex2003-05-311-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10221 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanups/bugfixeshenry2003-04-091-42/+32
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9896 b3059339-0415-0410-9bf9-f77b7e298cf2
* option for sub match fuzziness levelhenry2003-04-091-6/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9894 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l fix by Salvatore Falco <salvatore.falco@katamail.com>alex2003-04-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9889 b3059339-0415-0410-9bf9-f77b7e298cf2
* turn most of the subtitle matching fuzziness off by defaulthenry2003-04-081-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9885 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix compilation without iconvhenry2003-04-071-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9873 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for multiple subtitle files by Marcin Wojdyr <wojdyr@unipress.waw.pl>henry2003-04-071-147/+329
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9871 b3059339-0415-0410-9bf9-f77b7e298cf2
* hebrew support using fribidi libs, patch by Raindel Shachar ↵alex2003-03-211-0/+62
| | | | | | <raindel@techunix.technion.ac.il> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9636 b3059339-0415-0410-9bf9-f77b7e298cf2
* rt subtitle fixesarpi2003-02-071-1/+10
| | | | | | | patch by Andriy N. Gritsenko <andrej@lucky.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9323 b3059339-0415-0410-9bf9-f77b7e298cf2
* compiler warning fixes patch by Dominik Mierzejewski <dominik@rangers.eu.org>arpi2003-02-021-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9218 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_utf8 handling hopefully fixedhenry2003-01-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9146 b3059339-0415-0410-9bf9-f77b7e298cf2
* maybe fix ogm vs. iconvarpi2003-01-281-4/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9144 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a command line option (-sub-no-text-pp) to disable subtitlesarpi2003-01-271-1/+3
| | | | | | | | postprocessing, ie. { } removal etc. patch by Salvador Eduardo Tropea <salvador@inti.gov.ar> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9127 b3059339-0415-0410-9bf9-f77b7e298cf2
* - add subcppontscho2003-01-211-3/+15
| | | | | | | | - fix some 10l in gui - fix one 10l bug in subreader git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9057 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1) Removed the code to remove {} from sub_read_line_ssaarpi2003-01-191-33/+49
| | | | | | | | | | | | | 2) Put this code in a separated function: sub_pp_ssa 3) After recoding added a call to sub_pp_ssa. To be more acqurate: I added a pointer to function to hold a postprocessing function to be invoked after using iconv. There are one pointer for each format, if this pointer isn.t NULL the post processing function is called. patch by Salvador Eduardo Tropea <salvador@inti.gov.ar> help by <hephooey@fastmail.fm> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9010 b3059339-0415-0410-9bf9-f77b7e298cf2
* bunkus: fixed a small bug with skipping "{...}" in ssa subsmosu2003-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8941 b3059339-0415-0410-9bf9-f77b7e298cf2
* Overlapping subs are a feature mainly present in subtitlingarpi2003-01-101-77/+182
| | | | | | | | | | | | | software formats, such as JACOsub and SSA. This patch enables them, by default, only with this formats; however the user can force both enabling and disabling overlapping subtitles by the mean of -overlapsub and -nooverlapsub options. The code itself should avoid all the 'jumping subtitles' problems reported by the users. patch by salvatore.falco@katamail.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8883 b3059339-0415-0410-9bf9-f77b7e298cf2
* Since version 2.7 the file extension for JACOsub changed fromarpi2003-01-091-6/+6
| | | | | | | | | | | | '.js' to '.jss', to avoid confusion with javascript. There is also a new format for list_sub_file output; however this is used only in debugging subtitles code, while disabled in real life use. patch by <salvatore.falco@katamail.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8863 b3059339-0415-0410-9bf9-f77b7e298cf2
* some subviewer versions uses : instead of . or ,arpi2003-01-051-2/+2
| | | | | | | reported by Nagy Gábor <ngabor79@index.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8790 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10larpi2003-01-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8786 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10larpi2003-01-031-2/+2
| | | | | | | patch by Oskar Liljeblad <oskar@osk.mine.nu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8735 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for subviewer format using dots instead of commas:arpi2002-12-291-2/+2
| | | | | | | | 00:00:27.000 --> 00:00:28.300 patch by Oskar Liljeblad <oskar@osk.mine.nu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8644 b3059339-0415-0410-9bf9-f77b7e298cf2
* This patch adds a call to subcp_recode1(), so this subtitles too arearpi2002-12-281-0/+23
| | | | | | | | processed through iconv(). Kresimir Kukulj madmax@iskon.hr git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8619 b3059339-0415-0410-9bf9-f77b7e298cf2
* Attached is a small patch to fix a couple of problems I found when usingarpi2002-12-281-1/+16
| | | | | | | | | | | | | | | | .SSA subtitle files: 1) A comma appears at the beggining of the text. From comments on the code this seems to be a delicated matter, so I just added a conditional to eliminate the comma if it is at the beggining of the string. 2) It looks like this format uses {*} for attributes, like {/fs36} to select "font size 36pt". These things becomes really annoying when displayed with the real text ;-), so I added a simple filter to collapse all the text enclosed with { and }. Salvador Eduardo Tropea <salvador@inti.gov.ar> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8603 b3059339-0415-0410-9bf9-f77b7e298cf2
* dump subtitles in SAMI formatarpi2002-12-051-0/+53
| | | | | | | patch by Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8364 b3059339-0415-0410-9bf9-f77b7e298cf2
* optional (compile-time switch) subtitles-sorting featurearpi2002-12-051-4/+83
| | | | | | | patch by Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8363 b3059339-0415-0410-9bf9-f77b7e298cf2
* overlapping subtitles support is now optional, can be disabled (-nooverlapsub)arpi2002-12-051-2/+7
| | | | | | | patch by Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8362 b3059339-0415-0410-9bf9-f77b7e298cf2
* dump in JACOsub formatarpi2002-12-041-0/+49
| | | | | | | patch by Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8361 b3059339-0415-0410-9bf9-f77b7e298cf2
* I recently sent a patch for a new subtitles format, JACOsub. Since then Iarpi2002-11-161-155/+151
| | | | | | | | | found a better definition of jacosub standard, and this patch is the result. It supports timeresolutions changes and shifts. Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8208 b3059339-0415-0410-9bf9-f77b7e298cf2
* allow max 0.2s overlapping without splitting subsarpi2002-11-161-0/+12
| | | | | | | patch by salvatore.falco@katamail.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8207 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-1/+1
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
* This patch is to add support for overlapping subtitles, that isarpi2002-10-301-5/+103
| | | | | | | | | | | | subtitles whose start or end happens during another subtitle. After reading the subtitles from the file in sub_read_file(), this patch looks for overlapping subtitles and split them into more non-overlapping subtitles. Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7984 b3059339-0415-0410-9bf9-f77b7e298cf2
* JACOSub is another subtitling format, whose specifications are at:arpi2002-10-301-5/+200
| | | | | | | | http://unicorn.us.com/jacosub patch by Salvatore Falco <sfalco@studenti.ing.uniroma1.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7983 b3059339-0415-0410-9bf9-f77b7e298cf2
* small memleaksarpi2002-10-171-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable -subfps for time based subtitles, too.atmos42002-10-061-1/+17
| | | | | | | | | | | Please update the DOCS for -subfps: "If you have time-based subtitles like subviewer that can't be synced by -subdelay try specifying -subfps with the framerate of the movie the time-based sub was created for, eg. -subfps 25 if you use subs from a 25 fps movie with a movie using a different framerate. If you need to guess -subfps, try 25, 23.98 and 29.97" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7611 b3059339-0415-0410-9bf9-f77b7e298cf2
* Skip html tags (like <i>) inside subviewer subtitles.atmos4