Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > Feature Requests, Feedback And Suggestions

Feature Requests, Feedback And Suggestions Post your suggestions and feature requests here, what would you like to use in BS.Player. Any feedback is appreciated and will be reviewed by our team.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 20th February 2004
Junior Member
BS.Player Newbie
 
Join Date: Feb 2004
Posts: 6
Rep Power: 0
wpietron is an unknown quantity at this point
Default Wrapped subtitles

Hi,

thank you BST for one of the best players in the Internet community.
In my opinion it will be really THE BEST when it supports the ability
to wrap long subtitles. Automatic font resizing is nice but not as good as
wrapping.

I went through the forum. BST claims that wrapping subtitles is a hard
programming challenge. (Well, I am not an expert but I find resizing much
more complicated:-). But there are many players that implement that feature, ie.:

Vplayer (Polish page)
http://www.vplayer.albion.top.pl/

or XVid;)
http://www.free-codecs.com/download/XVid.htm

and probably mplayer (code available)
http://www.mplayerhq.hu

So, is BSPlayer going to be really the best?
wojtek
Reply With Quote
  #2 (permalink)  
Old 20th February 2004
BSPeter's Avatar
Moderator
BS.Player Master
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 5,463
Rep Power: 28
BSPeter is on a distinguished road
Default Re: Wrapped subtitles

Quote:
Originally Posted by wpietron
I went through the forum. BST claims that wrapping subtitles is a hard programming challenge.
Just out of curiosity: where/when did bst claim that? I remember I once uttered such assumption, but then I'm no programmer.
Also have a look at this post:
http://forum.bsplayer.org/viewtopic.php?p=11847#11847
__________________
Help2Help (click) BSplayer: simply the best & most versatile (Build 1072 Dutch language here!)
When posting always mention your computer's OS and the version and build number(!) of BS.Player as used by you,
as well as - if applicable and especially when encountering problems - the type(s) of the file(s) mentioned in your post.
Private messages/Visitor messages are NOT for seeking personal help with respect to BS.Player! Instead use the forums!
Reply With Quote
  #3 (permalink)  
Old 25th February 2004
Junior Member
BS.Player Newbie
 
Join Date: Feb 2004
Posts: 6
Rep Power: 0
wpietron is an unknown quantity at this point
Default Re: Wrapped subtitles

Quote:
Just out of curiosity: where/when did bst claim that? I remember I once uttered such assumption, but then I'm no programmer.
Also have a look at this post:
http://forum.bsplayer.org/viewtopic.php?p=11847#11847
I beg my pardon, it was you who said that:
http://forum.bsplayer.org/viewtopic.php?t=2588

So, are wrapped subtitles planned in development? Are there any work on that feature now?

Best regards,
wpietron
Reply With Quote
  #4 (permalink)  
Old 25th February 2004
BSPeter's Avatar
Moderator
BS.Player Master
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 5,463
Rep Power: 28
BSPeter is on a distinguished road
Default Re: Wrapped subtitles

Quote:
Originally Posted by wpietron
So, are wrapped subtitles planned in development? Are there any work on that feature now?
Look to this post (shown at the top of your window if you click on this link) in the old thread which you earlier found and appeared to be referring to

(In other words: I don't know)
__________________
Help2Help (click) BSplayer: simply the best & most versatile (Build 1072 Dutch language here!)
When posting always mention your computer's OS and the version and build number(!) of BS.Player as used by you,
as well as - if applicable and especially when encountering problems - the type(s) of the file(s) mentioned in your post.
Private messages/Visitor messages are NOT for seeking personal help with respect to BS.Player! Instead use the forums!
Reply With Quote
  #5 (permalink)  
Old 26th February 2004
Junior Member
BS.player Regular User
 
Join Date: Jun 2002
Location: Hungary
Posts: 15
Rep Power: 0
Fenyo is an unknown quantity at this point
Default

I totaly agree about wrapping/making-up subtitles!
And i think this is a very important thing to BSPlayer, a lot of people complains about this problem! (cause at a too long line BSPlayer uses a very small font, and text is unreadable!!)
It would be great if BSPlayer can truncate a too long line, and continue it in a new line! It would be just an option in the options/subtitles.

And NO, this is NOT a hard programming challenge! I'm a programmer, and i know, that making this is very easy. I made such type of line truncating and continuing in a new line.

And my recommendation for programming this: Just check if text is not fitting the window/screen(there is functions for measuring the width of a text with a font), and compute that how many windows/screens the text can fit(with rounding up, so 1.1 screen is 2 screen), and just divide text to so many parts, placing the edge of a line to the splitting positions(just variables storing the position in the text), and get back these values with a WHILE if the current position is not a space(so splitting the text at spaces, not at words).

This is look like this in delphi:

Screens:=RoundUp(MeasureWidth(Text) / ScreenWidth);
if Screens>1 then begin
__Edges:=Length(Text) div Screens;
__for i:=0 to Screens-1 do begin
____j:=(i+1)*Edges;
____while (j>0) and (Text[j]<>' ') do dec(j);
____SplittingPoint[i]:=j;
__end;
end;

And now we have just split the text to X parts at SplittingPoints. That's all.
I know, that this is a simplified example, but it will do for a begin. :)

I try to write it in C++ (I'm not too good in C++, i learned it long ago, and i'm not using C++ so much(yet), so please excuse me the syntax confusing/mistaking ;) ).

int Screens=RoundUp(MeasureWidth(Text) / ScreenWidth);
if(Screens>1) {
__int Edges=Length(Text) div Screens;
__for(int i=0; i<Screens-1; i++) {
____int j=(i+1)*Edges;
____while ((j>0) && (Text[j]!=32)) j--;
____SplittingPoint[i]=j;
__}
}

That's all.

Sorry for my bad english. ;)
__________________
...Fenyo
Reply With Quote
Reply

Tags
subtitles, wrapped

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules


All times are GMT +1. The time now is 10:25 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20