Re: data:text/plain

Daniel,
Finally I have a few answers. Thank you very much for such a detailed answer! Beaucoup apprécié !
I'm a teacher and have only recently discovered SMIL. I hope it is a technology that will grow.
I have only found this one pedagogical application for it, but I'm sure I will come up with other ideas - something more interactive. I have been playing with the Real Player only inthe last 24 hours. I may indeed choose that as my choice.
I have been writing a presentation paper, which you are welcome to read. I will have to update it considerably with what I have learned in the last few days. I'm not saying I'll get hundreds of teachers to do this, but who knows :)
http://compcanlit.usherbrooke.ca/eslcafe/quicktime/
One quesiton, buggy in Real, how do you espace spaces? You are talking about "%20"?
Thank you. I will get back to the mailing list if I have more questions. It only publishes once a day at mid-night eastern time, if I'm not mistaken? Sorry for the double post last night.
Thanks!
John

Daniel Weck wrote:

> Dear John,
>
> Text playback using SMIL is a real issue at this point in time, because
> of the lack of text standard supported uniformly across existing SMIL
> players.
> You virtually have to create one custom presentation per target
> playback application if you want to obtain good results.
>
> The major SMIL1.0 / 2.0 players are RealOne, QuickTime, Ambulant.
> You'll find them for Windows, Linux and MacOSX.
>
> Unfortunately, plain HTML files ([.htm], [.html], [.xhtml]) are not
> supported.
> As a results: RealText ([.rt]) is recommended for when using RealOne,
> QuickTime text ([.qt]) when using QuickTime, as for Ambulant, I am not
> really sure of the level of support for text data.
> I see you're trying to use inline text using the [data,:] URL scheme.
> There are several issues with this method, which I'll expose in the
> following.
>
> Please note that we'll assume that the text data is in the US-ASCII
> charset, as using non-western encodings introduces further issues.
> (e.g. Japanese in RealText *only* works with:
> <window version="1.4">
> <font charset="euc-jp" face="Osaka">
> あいうえお
> </font>
> </window>
> )
>
> As you can see, creating text-rich SMIL presentations is quite a
> hassle, so I made a few tests and demos to help you through.
>
> If you're really interested in text with SMIL technology, you should
> look at TimedText (not implemented yet, but very promising):
> http://www.w3.org/AudioVideo/TT/
>
> ---------
>
> I opened the samples you provided at the given URLs using LimSee2 (
> http://wam.inrialpes.fr/software/limsee2/ ).
> (The latest CVS 1.5 version, will be online soon)
>
> http://compcanlit.usherbrooke.ca/eslcafe/project1/big_yellow_taxi.smil
> http://compcanlit.usherbrooke.ca/eslcafe/project1/big_yellow_taxi2.smil
>
> I then stored them locally in order to perform appropriate
> modifications and tests using RealOne, QuickTime, and Ambulant.
> (all at their latest versions, on MacOSX)
>
> A few remarks:
>
> - LimSee2 automatically adds the Doctype header at the beginning at the
> SMIL document when saving (here in SMIL1.0):
> <!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 1.0//EN"
> "http://www.w3.org/TR/REC-smil/SMIL10.dtd">
>
> - It also adds the detected Encoding in the XML header:
> <?xml version="1.0" encoding="US-ASCII"?>
>
> - Strangely, JavaMediaFramework managed to open the MP3 file, but could
> not play it...I used the QuickTime framework instead, and it worked.
>
> - Using LimSee2, I explicitly set the duration on the Audio element, in
> order to visualize your presentation in the timeline view
> (dur="00:03:49.093").
>
> -  Please note that for all implementations I know of,
> [data:text/plain,] is equivalent of [data:,].
> [data:text/html,] doesn't seems to be supported by existing
> implementations.
>
> - I added a gray background color to region [r2], as this is more
> likely to handle both black and white text rendering (the text will be
> rendered with a different color depending on the player used):
> [background-color="gray"]
>
> - RealOne player has problems dealing with spaces in file names. So I
> renamed the MP3 file to [Big_Yellow_Taxi.mp3] (and changed the SMIL
> sources accordingly).
>
> - I replaced the spaces by [%20] in [src="data:text/plain,...."].
> QuickTime works fine without this modifications, but RealOne requires
> that spaces are escaped in the URL format.
>
> - In your demo, a added a couple of Params elements to apply some basic
> style on the inline text (Please note that this is not supported
> uniformly by players, in fact, QuickTime will ignore that, RealOne will
> correctly render).
>         <param name="backgroundColor" value="white"/>
>            <param name="fontColor" value="blue"/>
>            <param name="fontFace" value="tahoma"/>
>            <param name="fontWeight" value="bold"/>
>            <param name="fontStyle" value="italic"/>
>            <param name="fontSize" value="3"/>
>            <param name="hAlign" value="center"/>
>            <param name="vAlign" value="middle"/>
>
> - Ambulant issues warning messages for timing syntax in each text
> elements. Maybe [begin="id(song)(0:22)"]...I'm not sure.
>
> You'll find the corresponding SMIL samples here:
> http://wam.inrialpes.fr/software/limsee2/LimSee2_DemoContent/
> big_yellow_taxi/
>
> ## To conclude (your original requirement was to have text fitting the
> entire window space):
> Because of the lack of text standard that renders uniformly across SMIL
> players, I suggest you focus on one given player.
> I would recommend targeting RealOne player at this point in time.
> Using RealText instead of inline text, you can have formatted text
> (color, font, size, style, etc) that fits the entire region nicely.
>
> You may consult the links on this webpage for more information on SMIL:
> http://wam.inrialpes.fr/software/limsee2/index.php?goto=Links
>
> Kind regards, Daniel WECK.
> LimSee2 development team
> http://wam.inrialpes.fr/software/limsee2/
>
> On 25 Feb 2005, at 23:47, John Taylor-Johnston wrote:
>
> >
> > Hi,
> > a simple question, I hope. My "r2" text region should display in a 320
> > x 50 window. It looks more like 140 x 50 shoved to the left of the
> > screen. It does not go across the entire screen, unless I use
> > fitt=fill. I don't want that. It stretches my fonts unequally.
> >
> > I've been looking high and low for a solution. Only today have I found
> > this mailing list. Has anyone a solution? Surely this is an old bug?
> > Is it merely a quicktime problem?
> >
> > Please see:
> > http://compcanlit.usherbrooke.ca/eslcafe/project1/big_yellow_taxi.smil
> > or
> > http://compcanlit.usherbrooke.ca/eslcafe/project1/big_yellow_taxi2.smil
> >
> > I have tested both:
> > <region id="r2" width="100%" height="100%" fit="hidden"/>
> > and
> > <region id="r2" width="320" height="50" fit="hidden"/>
> >
> > But here is the code in a nutshell.
> >
> > <smil
> > xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions"
> > qt:time-slider="true">
> > <?quicktime type="application/x-quicktime-media-link"?>
> >
> > <head>
> > <layout>
> > <root-layout id="main" width="320" height="50"
> > background-color="#000000"/>
> > <region id="r2" width="100%" height="100%" fit="hidden"/>
> > </layout>
> > </head>
> > <body>
> > <par>
> > <audio src="Big Yellow Taxi.mp3" id="song" />
> > <text region="r2" src="data:text/plain, ____ paved paradise ____ put
> > ____ ____ parking lot." begin="id(song)(0:10)"/>
> > <text region="r2" src="data:text/plain, With ____ pink hotel, ____
> > boutique, ____ ____ swinging hot spot." begin="id(song)(0:15)"/>
> > .....snip...
> >
> >
> >

--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not Open Source, it's Murphy's Law."

 '''    Collège de Sherbrooke:
 ô¿ô    http://www.collegesherbrooke.qc.ca/languesmodernes/
  -     819-569-2064

  °v°   Bibliography of Comparative Studies in Canadian, Québec and Foreign Literatures
 /(_)\  Université de Sherbrooke
  ^ ^   http://compcanlit.ca/ T: 819.569.2064

Received on Saturday, 26 February 2005 16:01:16 UTC