diff options
author | Tony Anderson <tony_anderson@usa.net> | 2009-08-24 13:02:38 (GMT) |
---|---|---|
committer | Tony Anderson <tony_anderson@usa.net> | 2009-08-24 13:02:38 (GMT) |
commit | 22ddbdeb9c1bdf1cc5a1e7cb679013875436f9a0 (patch) | |
tree | fcd87f22c5b38fa8613ae3d935ac72fbfd5b76ac | |
parent | be5dd2661c8973d613a0af375c6dd3f8ab183f20 (diff) |
add test items
-rwxr-xr-x[-rw-r--r--] | smile.py | 0 | ||||
-rwxr-xr-x | test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.mp3 | bin | 0 -> 2384225 bytes | |||
-rw-r--r-- | test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.smil | 88 | ||||
-rwxr-xr-x | test-items/2002-11-15 writing thank-you notes/2002-11-15.mp3 | bin | 0 -> 2513302 bytes | |||
-rwxr-xr-x | test-items/2002-11-15 writing thank-you notes/2002-11-15.smil | 85 | ||||
-rwxr-xr-x | test-items/2002-12-04 rap/2002-12-04.mp3 | bin | 0 -> 2402052 bytes | |||
-rw-r--r-- | test-items/2002-12-04 rap/2002-12-04.smil | 115 | ||||
-rwxr-xr-x | test-items/2002-12-26 American vs British English/2002-12-26.mp3 | bin | 0 -> 2509188 bytes | |||
-rwxr-xr-x | test-items/2002-12-26 American vs British English/2002-12-26.smil | 0 | ||||
-rwxr-xr-x | test-items/ambulant.py | 192 | ||||
-rwxr-xr-x | test-items/skeleton.smil | 30 |
11 files changed, 510 insertions, 0 deletions
diff --git a/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.mp3 b/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.mp3 Binary files differnew file mode 100755 index 0000000..113518e --- /dev/null +++ b/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.mp3 diff --git a/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.smil b/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.smil new file mode 100644 index 0000000..a99b168 --- /dev/null +++ b/test-items/2002-11-13 lida-baker-listener-questions/2002-11-13.smil @@ -0,0 +1,88 @@ +<?xml version="1.0"?> +<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 2.0//EN" + "http://www.w3.org/ns/SMIL"> +<smil xmlns="http://www.w3.org/ns/SMIL"> +<head> + <layout> + <root-layout width="1200" height="900" background-color="black"/> + <region xml:id="textregion" + top="100" + width="800" + height="600" + left="100" + textMode="scroll" + textRate="6px" + textColor="black" + backgroundColor="white" + /> + <region xml:id="audio"/> + </layout> +</head> +<body> + <par> + <audio region = "audio" src = "2002-11-13.mp3" dur = "293s"/> + <smilText xml:id="CapF0" region="textregion" dur = "289s" begin="3s"> +<span textColor="black" textFontSize="xx-large" textFontStyle="normal" textFontFamily="serif" textFontWeight="bold"> +AA: I'm Avi Arditti with Rosanne Skirble, and this week on Wordmaster, +English teacher Lida Baker answers some of your questions. <p/> RS: +Starting with this from "Sunny," He Hong Feng, who asks: "May I say I +am an English teacher or should I say I am a teacher of English, as I +am a Chinese." <p/> BAKER: "If he says that he is an ENGLISH +teacher, with the stress on the word English, it means that he is a +teacher of the English language. So he is an ENGLISH teacher. Now, on +the other hand, if you say 'I am an ENGLISH TEACHER,' notice that both +of the words there are stressed equally, an ENGLISH TEACHER. That means +that you are a teacher whose nationality is English. Now I just want to +throw out a parallel case, quite a well-known one, which is: Where does +the president of the United States live?" <p/> AA: "The White House." <p/> +BAKER: "The White House. And you stressed the first word, WHITE House. +Now, one the other hand, if you stressed both words equally and you say +WHITE HOUSE, how would you use that?" <p/> AA: "I live in the white house." <p/> RS: "As opposed to the blue house or the green house." <p/> BAKER: "Correct." <p/> +AA: "Moving on, Rick Ming is a junior majoring in English in China, and +he would like to know how to get his classmates more interested in +current affairs. He says: 'Unfortunately, not all my classmates care +about current affairs. So the point is, how I am able to motivate them +to express the views on news freely in class?'" <p/> BAKER: "People +are interested in something or they're not. Most people are interested +in things that are of some kind of relevance to their lives. So I would +say if you want to discuss current events with your classmates, try to +select topics or issues that affect their lives in one way or another. <p/> +"But I suspect that a larger problem is, it's not that they're not +interested in current events, but rather it may be that his classmates +just feel that they don't have enough English to be able to do this +competently. So some ideas that come to my mind are, instead of talking +about, for example, Voice of America news headlines, to select the +feature stories, which have the scripts, posted on the Internet. <p/> +And before having the discussion with his classmates, each person could +read the scripts and that would give them the opportunity to spend some +time learning the vocabulary and thinking about the background of the +topic involved. So that's one thought that I had. <p/> "Another one +that I had was to give some thought to the linguistic skills that are +necessary in order to sustain a conversation or a discussion in +English. If you're talking about current events with somebody, you +would need to know how to express an opinion. You would need to know +how to agree with somebody or to disagree with somebody. You would need +to know how to ask questions. You would need to know how to ask +somebody to repeat what they have just said, or to explain what they +have just said. <p/> "Now all of those how-to's that I've just +mentioned are called language functions. And it might be useful for +this student to approach his English teacher and ask the teacher to +help him and his classmates learn some of these functions." <p/> RS: "It might also be a good idea for him to start a separate study group." <p/> BAKER: "I thought of that." <p/> RS: "A group that perhaps looks at an English language newspaper or looks at the VOA Web site, or -- " <p/> BAKER: "Or a club." <p/> RS: "Or a club, exactly, where interested people come together for this particular purpose." <p/> +BAKER: "Sure. One other idea that I had is to make use of the Internet. +There is a Web site, for example, called Dave's ESL Cafe. And there are +all kinds of discussion forums. But if you went to a search engine and +you typed in something like 'ESL discussion groups' I suspect you would +find others as well. So I think it's very worthwhile to make use of the +Internet, you know, via an online discussion group." <p/> RS: "And make new friends." <p/> BAKER: "That's right." <p/> +AA: Lida Baker teaches in the American Language Center at the +University of California at Los Angeles -- that is, when she's not +writing books for English learners. Lida can't answer questions +personally, but send them to Rosanne and me. <p/> RS: Write us at +VOA Wordmaster, Washington, DC 20237 USA or word@voanews.com. And our +Web site is voanews.com/wordmaster. With Avi Arditti, I'm Rosanne +Skirble. +</span> + </smilText> + </par> +</body> +</smil> diff --git a/test-items/2002-11-15 writing thank-you notes/2002-11-15.mp3 b/test-items/2002-11-15 writing thank-you notes/2002-11-15.mp3 Binary files differnew file mode 100755 index 0000000..ad1c476 --- /dev/null +++ b/test-items/2002-11-15 writing thank-you notes/2002-11-15.mp3 diff --git a/test-items/2002-11-15 writing thank-you notes/2002-11-15.smil b/test-items/2002-11-15 writing thank-you notes/2002-11-15.smil new file mode 100755 index 0000000..53d9bea --- /dev/null +++ b/test-items/2002-11-15 writing thank-you notes/2002-11-15.smil @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 2.0//EN" + "http://www.w3.org/ns/SMIL"> +<smil xmlns="http://www.w3.org/ns/SMIL"> +<head> + <layout> + <root-layout width="1200" height="900" background-color="black"/> + <region xml:id="textregion" + top="100" + width="800" + height="600" + left="100" + textMode="scroll" + textRate="6px" + textColor="black" + backgroundColor="white" + /> + <region xml:id="audio"/> + </layout> +</head> +<body> + <par> + <audio region = "audio" src = "2002-11-15.mp3" dur = "300s"/> + <smilText xml:id="CapF0" region="textregion" dur = "295s" begin="5s"> +<span textColor="black" textFontSize="xx-large" textFontStyle="normal" textFontFamily="serif" textFontWeight="bold"> +<p/> +RS: And I'm Rosanne Skirble, and this week on Wordmaster: Some advice +on how to write a thank-you note, as many people will do in this season +of holiday gift giving. <p/> AA: Laura Kimoto is an instructor in +the Intensive English Program at Hawaii Community College. She's been +teaching her students from Asia what Americans learn about writing +thank-you's -- which is, above all, give details about what you're +saying thanks for. <p/> Laura Kimoto points out the need for +students to vary their writing. For instance, instead of using the word +"kindness" several times, she offers synonyms like "hospitality," +"generosity" or "thoughtfulness." <p/> RS: Some things, though, are harder to teach, like the social customs that make some words better left unsaid. <p/> KIMOTO: "For example, a girl used the word 'cute' to refer to this elderly couple: 'You are a cute elderly couple.'" <p/> AA: What's wrong with being called a "cute elderly couple"? <p/> +RS: Well, Americans generally avoid calling attention to age. And, to +refer to an older couple as "cute" might seem a little condescending. <p/> AA: Of course the student had no idea! She was just trying to thank a nice couple she had met. <p/> RS: You even have to be careful with your closing salutation. <p/> AA: "Do you not end a thank-you note with love? Is that not a good idea?" <p/> KIMOTO: "I would say that is not a good idea, depending on who the person is you are writing to, but most likely not." <p/> +RS: This time of year, Laura Kimoto suggests to her students at Hawaii +Community College: "Wishing you health and peace for the New Year." <p/> +AA: A phrase worthy of a professional greeting card -- which is what +Sandra Louden has written lots of over the years. She says a thank-you +should be "sincere" and "heartfelt" -- and, again, big on specifics! <p/> +RS: Sandra Louden says that even if a person gives you a gift of money, +you should tell the giver how you plan to use it. <p/> LOUDEN: "You +always remember, in any type of note you write, especially a thank-you +note, it should have that me-to-you quality. In other words I am +writing this note to specifically thank you, so I have you in mind when +I am writing this. So that me-to-you voice is always very nice, very +heartfelt, very successful, it makes for a very successful thank-you +note." <p/> RS: Sandra Louden says she likes to add a touch of +humor, but knows that some people are afraid to include it, afraid +that, as writers, they're too serious to be funny. If that's you, +consider this: <p/> LOUDEN: "It's really not as hard as you think, +if you think in a certain way, and one of those ways that I talk about +in classes that I teach, is to think literally. You might try something +like 'thanks a bunch' and on the front maybe draw a bunch of grapes and +have yourself smiling and sitting in those bunch of grapes, and that +would be 'thanks a bunch.' <p/> AA: "(laughing) I never thought of that!" <p/> +LOUDEN: "And if you want to do 'thanks a bunch' again, just think of +anything with a bunch. You could do a bunch of bananas. Now if you want +to get into another expression, then you say like 'thanks a million,' +maybe you want to tack some fake money on the front of the card you +make. You want to hand make a card and you get some of those +one-hundred-thousand-dollar bills that they sell in novelty shops, and +you tack that on the front of your card and you say 'thanks a ... +thanks a million.'" <p/> RS: And, she says, you can even employ humor on thank-you cards in a business setting. <p/> +LOUDEN: "For a lawyer for instance, 'There is no reasonable doubt, we +thank you very much.' Or for an accountant, 'when we tally our +blessings, we count you among them. Thank you for your patronage.' I +find that humor is a state of mind -- it cuts across age, gender, what +have you. Everyone appreciates a good laugh and a smile. And with a +thank you card, another component is to keep it very short and to the +point, and if it's based on a pun or a play on words, even if it's very +corny, it gets the message across and it adds that little extra punch +that people remember." <p/> AA: Sandra Louden is author of the book +"Write Well and Sell Greeting Cards." She also teaches an Internet +course at www.writerscollege.com. <p/> RS: And we'd like you to +remember our e-mail address: it's word@voanews.com. Or write us at VOA +Wordmaster, Washington DC 20237 USA. Oh, and thank you in advance! <p/> AA: With Rosanne Skirble, I'm Avi Arditti. +</span> + </smilText> + </par> +</body> +</smil> diff --git a/test-items/2002-12-04 rap/2002-12-04.mp3 b/test-items/2002-12-04 rap/2002-12-04.mp3 Binary files differnew file mode 100755 index 0000000..392d696 --- /dev/null +++ b/test-items/2002-12-04 rap/2002-12-04.mp3 diff --git a/test-items/2002-12-04 rap/2002-12-04.smil b/test-items/2002-12-04 rap/2002-12-04.smil new file mode 100644 index 0000000..5305128 --- /dev/null +++ b/test-items/2002-12-04 rap/2002-12-04.smil @@ -0,0 +1,115 @@ +<?xml version="1.0"?> +<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 2.0//EN" + "http://www.w3.org/ns/SMIL"> +<smil xmlns="http://www.w3.org/ns/SMIL"> +<head> + <layout> + <root-layout width="1200" height="900" background-color="black"/> + <region xml:id="textregion" + top="100" + width="800" + height="600" + left="100" + textMode="scroll" + textRate="6px" + textColor="black" + backgroundColor="white" + /> + <region xml:id="audio"/> + </layout> +</head> +<body> + <par> + <audio region = "audio" src = "2002-12-04.mp3" dur = "300s"/> + <smilText xml:id="CapF0" region="textregion" dur = "295s" begin="5s"> +<span textColor="black" textFontSize="xx-large" textFontStyle="normal" textFontFamily="serif" textFontWeight="bold"> +<p/> +AA: I'm Avi Arditti with Rosanne Skirble, and this week on Wordmaster +-- the art of rap. This form of music sprang from the hip-hop culture +of young, urban African Americans. +<p/> RS: But, as often happens +with black music, it is a white artist who is getting lots of attention +lately -- especially now that he's starring in a semi-biographical +movie, called "8 Mile." We're talking about Eminem. That's E-M-I-N-E-M, +a play on the initials of his real name, Marshall Mathers. +<p/> AA: +A top rapper is known as an M-C, meaning "master of ceremonies" or +"microphone controller." A few years ago Priest Da Nomad, a local M-C +from Washington came into our studios to talk about rap. +<p/> +PRIEST DA NOMAD: "To rap is basically just like to speak, but it's to +speak rhythmically. And when you -- you notice that when you talk +anyway, you kind of define a rhythm, but we don't really notice it. So +it's really like consciously doing it, and it's just using your brain, +which is a muscle. So it's like everything you do, it's like going to +the gym with your brain." +<p/> AA: "And you have to keep working out and working out and getting stronger." +<p/> +PRIEST DA NOMAD: "And there's different aspects of rapping. The one I +specialize in is improvisational rhyming, which is called freestyling." +<p/> RS: Give him a word, he'll think up a rhyme. Here he goes off on the word "word." +<p/> +PRIEST DA NOMAD: "We're going to break it down, the W, O, R to the aura +and the D -- that's me, representative from DC, calm MC's like +sedative, and that's a word, meaning to calm down, down I don't know, +maybe that's the way you go, adverb, when I come through, rhyming is +absurd. Or should I say the subject and the predicate -- before I hit +the predicate, you're looking at me, dang he got mike etiquette. Oh +goodness, smooth with this flowing eye, bust over the styles and hit +you with the flow -- it's like the Nile River, delivery, like poetry, +hit the high notes, like Al Green, on the scene, sort of like +Valvoline, my tongue was dipped in oil to slide by rhythms ... " +<p/> +AA: And he kept going. Priest Da Nomad started rapping when he was +twelve. He annoyed his teachers by tapping out rhythms on his desk. +<p/> RS: He mastered the art of freestyling with practice, but also speech training and working with others. +<p/> +PRIEST DA NOMAD: "We used to take speech exercises like doing debates, +doing alliteration, going through the alphabet, doing story telling and +environment rhyming, which is just picking things out in the +environment and rhyming about them and just practicing like that. I +read the newspaper every day. I try to feed my brain with as much data +as possible, and then you practice drawing upon that data in a split +second." +<p/> AA: Priest Da Nomad says rap lyrics don't have to be violent or vulgar. But tell that to the record companies. +<p/> +PRIEST DA NOMAD: "When you talk about money becoming an aspect, that +means things are going to happen to sell records. Certain artists and +certain types of music are pushed because it talks about a certain +lifestyle, and pop America -- white America -- is fascinated by that +lifestyle." +<p/> RS: "How different are you from the twelve-year-old who was pounding on his desk in junior high?" +<p/> +PRIEST DA NOMAD: "Well, I've grown and matured. I still have the same +passion, though. My whole thing with what I do is when I feel something +and when something moves me, I can't ignore it, and everyone from, like +teachers and parents -- my mother used to tell me, 'why are you doing + this?' She laughed at it at first because, she was like, 'OK, it's a +phase he's going through.' And then after high school -- we were +dealing with some record companies but before we could do a deal, one +of them folded -- I went to school for a little bit, to college, and +came back and got pulled back into music. Once I got back into it, I +was like, this is where my heart is and I'm not ever stopping." +<p/> MUSIC: "We Got" +<p/> +AA: We talked to Priest Da Nomad back in 1999, before he got the chance +to perform at a nationally televised millennium celebration here in +Washington. But, as he later told a Washington Post reporter, the +lyrics they gave him -- written by basketball star Shaquille O'Neal and +the rapper Coolio -- were "horrible." Too commercial. +<p/> RS: So +Priest ended up saying thanks but no thanks to the man who invited him: +the legendary black music producer Quincy Jones. Believe it or not, +Priest Da Nomad still has a career. +<p/> In fact, he's featured on +an album with another Washington D-C rapper, Storm the Unpredictable, +coming out in January -- plus he tells us he's working on a new album +of his own. +<p/> AA: And that's Wordmaster for this week. We're on +the Web at voanews.com/wordmaster, and our e-mail address is +word@voanews.com. With Rosanne Skirble, I'm Avi Arditti. +</span> + </smilText> + </par> +</body> +</smil> diff --git a/test-items/2002-12-26 American vs British English/2002-12-26.mp3 b/test-items/2002-12-26 American vs British English/2002-12-26.mp3 Binary files differnew file mode 100755 index 0000000..58b5c64 --- /dev/null +++ b/test-items/2002-12-26 American vs British English/2002-12-26.mp3 diff --git a/test-items/2002-12-26 American vs British English/2002-12-26.smil b/test-items/2002-12-26 American vs British English/2002-12-26.smil new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test-items/2002-12-26 American vs British English/2002-12-26.smil diff --git a/test-items/ambulant.py b/test-items/ambulant.py new file mode 100755 index 0000000..1c761e4 --- /dev/null +++ b/test-items/ambulant.py @@ -0,0 +1,192 @@ +#!/usr/bin/env python +import subprocess +import optparse +import sys +from path import path + +fromscratch = False + +#download source tarball (live555-latest.tar.gz) from http://www.live555.com/liveMedia/public into $srcdir +LIVE555 = ['wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz'] + +#download source tarball (ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.1.tar.gz) from ftp://xmlsoft.org/libxml2 into $srcdir +LIBXML2 = ['wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.1.tar.gz'] + +#download source tarball gettext-0.17.tar.gz into $srcdir +GETTEXT = ['wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.17.tar.gz'] + +#download ffmpeg (svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg) +FFMPEG = ['svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg', 'cp -r $srcdir/ffmpeg .'] + +#Create a function, that takes a list parameter +#Function uses default keyword parameter of cmds +def runCommands(cmds): + #Iterates over list, running statements for each item in the list + count=0 + for cmd in cmds: + count += 1 + print "Running Command %s, %s" % (count, cmd) + subprocess.call(cmd, shell=True) + +#If ROOTDIR does not exist, downloads ambulant, extracts to ROOTDIR +def fetchAmbulant(): + if ROOTDIR.exists(): + fromscratch = False + return + else: + fromscratch = True + #download ambulant 2 and extract to ROOTDIR + wgetcmd = 'wget --directory-prefix ' + ROOTDIR + ' http://downloads.sourceforge.net/ambulant/ambulant-2.0.1-src.tgz' + print 'wget', wgetcmd + subprocess.call(wgetcmd, shell=True) + print 'tar', tarcmd + tarcmd = 'tar -xf ambulant-2.0.1-src.tgz' + subprocess.call(tarcmd, shell=True, cwd=ROOTDIR) + +def fetchTPP(): + print 'fromscratch', fromscratch, options.fetch + if fromscratch or "expat" in options.fetch: + wgetcmd = 'wget http://downloads.sourceforge.net/expat/expat-2.0.1.tar.gz' + print 'expat wget', wgetcmd + subprocess.call(wgetcmd, shell=True, cwd=ROOTDIR) + tarcmd = 'tar -xf ' + ROOTDIR + '/expat-2.0.1.tar.gz' + print 'expat tarcmd', tarcmd + subprocess.call(tarcmd, shell=True, cwd=TPPDIR) + if fromscratch or "ffmpeg" in options.fetch: + svncmd = 'svn checkout -r "{2008-06-15}" svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg' + print 'ffmpeg', svncmd + subprocess.call(svncmd, shell=True, cwd=TPPDIR) + if fromscratch or "libsdl" in options.fetch: + wgetcmd = 'wget http://www.libsdl.org/release/SDL-1.2.13.tar.gz' + print 'libsdl', wgetcmd + subprocess.call(wgetcmd, shell=True, cwd=ROOTDIR) + tarcmd = 'tar -xf ' + ROOTDIR + '/SDL-1.2.13.tar.gz' + print 'libsdl', tarcmd + subprocess.call(tarcmd, shell=True, cwd=TPPDIR) + if fromscratch or "live555" in options.fetch: + wgetcmd = 'wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz' + print 'live555', wgetcmd + subprocess.call(wgetcmd, shell=True, cwd=ROOTDIR) + tarcmd = 'tar -xf ' + ROOTDIR + '/live555-latest.tar.gz' + print 'live555', tarcmd + subprocess.call(tarcmd, shell=True, cwd=TPPDIR) + if fromscratch or "libxml2" in options.fetch: + wgetcmd = 'wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz' + print 'libxml2', wgetcmd + subprocess.call(wgetcmd, shell=True, cwd=ROOTDIR) + tarcmd = 'tar -xf ' + ROOTDIR + '/libxml2-2.7.3.tar.gz' + print 'libxml2', tarcmd + subprocess.call(tarcmd, shell=True, cwd=TPPDIR) + +def buildTPP(): + if fromscratch or "expat" in options.build: + configcmd = './configure --prefix=' + TPPDIR + '/expat-unix' + cwdpath = TPPDIR + '/expat-2.0.1' + subprocess.call(configcmd, shell=True, cwd=cwdpath) + subprocess.call('make', shell = True, cwd=cwdpath) + subprocess.call('make install', shell=True, cwd=cwdpath) + if fromscratch or "ffmpeg" in options.build: + configcmd = './configure --enable-gpl' + cwdpath = TPPDIR + '/ffmpeg' + subprocess.call(configcmd, shell=True, cwd=cwdpath) + subprocess.call('make', shell = True, cwd=cwdpath) + if fromscratch or "libsdl" in options.build: + print 'build libsdl' + configcmd = './configure' + cwdpath = TPPDIR + '/SDL-1.2.13' + subprocess.call(configcmd, shell=True, cwd=cwdpath) + subprocess.call('make', shell = True, cwd=cwdpath) + subprocess.call('make install', shell=True, cwd=cwdpath) + if fromscratch or "live555" in options.build: + print 'build live555' + configcmd = './genMakefiles linux' + cwdpath = TPPDIR + '/live' + subprocess.call(configcmd, shell=True, cwd=cwdpath) + subprocess.call('make', shell = True, cwd=cwdpath) + if fromscratch or "libxml2" in options.build: + print 'build libxml2' + configcmd = './configure' + cwdpath = TPPDIR + '/libxml2-2.7.3' + subprocess.call(configcmd, shell=True, cwd=cwdpath) + subprocess.call('make', shell = True, cwd=cwdpath) + subprocess.call('make install', shell=True, cwd=cwdpath) + +def buildAmbulant(): + if not test == 'yes': + #configcmd = './configure --with-live --with-python --with-ffmpeg' + configcmd = './configure --with-ffmpeg --with-live -with-python' + cwdpath = ROOTDIR + '/ambulant-2.0.1' + retcode = subprocess.call(configcmd, shell=True, cwd=cwdpath) + if retcode > 0: + print 'ambulant configure failed' + return + logfile = open('make.log', 'w') + retcode = subprocess.call('make', shell = True, cwd=cwdpath, stdout=logfile, stderr = subprocess.STDOUT) + logfile.close() + if retcode > 0: + print 'ambulant make failed' + return + logfile = open('install.log', 'w') + retcode = subprocess.call('make install', shell=True, cwd=cwdpath, stdout=logfile, stderr=subprocess.STDOUT) + logfile.close() + if retcode > 0: + print 'ambulant install failed' + return + +#builds ambulant +def main(): + temp = 'ROOTDIR= ' + str(ROOTDIR) + ' ' + str(ROOTDIR.exists()) + '\n' + print temp + print 'fetch= ' + fetch + '\n' + print 'build= ' + build + '\n' + #fetch ambulant if ROOTDIR does not exist + fetchAmbulant() + #download latest version of selected packages + fetchTPP() + #build selected packages + buildTPP() + #build ambulant + buildAmbulant() + print 'done' + +#This idiom means the below code only runs when executed from command line +if __name__ == '__main__': + sys.stdout = open("ambulant.log", "w") + parser = optparse.OptionParser("usage: %ambulant [options] ") + #option --prefix = path to ambulant folder; if ambulant folder does not exist, fetch ambulant and all third-party packages + #option --fetch=[expat, ffmpeg, ...] list of packages to download + #option --build=[expat, ffmpeg, ...] list of packages to build + + parser.add_option("-p", "--prefix", dest="prefix", + default="/home/tony/Documents/testambulant", type="string", + help="path to ambulant2 folder") + + parser.add_option("-f", "--fetch", dest="fetch", + default="[]", type="string", + help="list of packages to be downloaded, e.g. [expat, ffmpeg]") + parser.add_option("-b", "--build", dest="build", default="[]", + type="string", help="list of packages to be built, e.g. [expat, ffmpeg") + parser.add_option("-t", "--test", dest="test", default="no", type="string", help="--test to log commands but not execute") + + (options, args) = parser.parse_args() + + prefix = options.prefix + fetch = options.fetch + build = options.build + test = options.test + + print 'options prefix', prefix + print 'options fetch', fetch + print 'options build', build + print 'options test', test + + if len(prefix) > 0: + ROOTDIR = path(prefix) + else: + ROOTDIR = path('/home/tony/Documents/testambulant') + print 'ROOTDIR', ROOTDIR + TPPDIR= path(ROOTDIR / 'ambulant-2.0.1' / 'third_party_packages') + print 'ROOTDIR', ROOTDIR + print 'TPPDIR', TPPDIR + main() +sys.exit() diff --git a/test-items/skeleton.smil b/test-items/skeleton.smil new file mode 100755 index 0000000..494152a --- /dev/null +++ b/test-items/skeleton.smil @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 2.0//EN" + "http://www.w3.org/ns/SMIL"> +<smil xmlns="http://www.w3.org/ns/SMIL"> +<head> + <layout> + <root-layout width="1200" height="900" background-color="black"/> + <region xml:id="textregion" + top="100" + width="800" + height="600" + left="100" + textMode="scroll" + textRate="6px" + textColor="black" + backgroundColor="white" + /> + <region xml:id="audio"/> + </layout> +</head> +<body> + <par> + <audio region = "audio" src = "2002-12-26.mp3" dur = "293s"/> + <smilText xml:id="CapF0" region="textregion" dur = "289s" begin="3s"> +<span textColor="black" textFontSize="xx-large" textFontStyle="normal" textFontFamily="serif" textFontWeight="bold"> +</span> + </smilText> + </par> +</body> +</smil> |