Re: wget vs mms://*.wmv?

2003-06-04 Thread Aaron S. Hawley
another propretary protocol brought to you by the folks in redmond,
washington.

http://sdp.ppona.com/
http://geocities.com/majormms/

On Sun, 1 Jun 2003, Andrzej Kasperowicz wrote:

> How could I download using wget that:
> mms://mms.itvp.pl/bush_archiwum/bush.wmv
>
> If wget cannot manage it then what can?
>
> Cheers!
> Andy

-- 
"Our armies do not come into your cities and lands as conquerors or
enemies, but as liberators."
 - British Lt. Gen. Stanley Maude. "Proclamation to the People of the
   Wilayat of Baghdad". March 8, 1917.


Re: Comment handling

2003-06-04 Thread George Prekas
[ ... ]

I have downloaded Mozilla's source. It was 30MB! Now, I searched where
Mozilla handles comments and found mozilla/htmlparser/src/nsHTMLTokens.cpp.
Inside it, there are two functions: ConsumeStrictComment and
ConsumeQuirksComment. The first one follows the rules, the second one tries
to handle even invalid comments and it uses an algorithm like this:
1. Looks for 

 arbitrary number of dashes

My thoughts on the subject:
Before looking at Mozilla, I made my own algorithm. It is based on the
following thought: Every comment ends at the >, unless this > is inside the
comment. The hard part is to decide when it is a comment. Well, it has to
start with --. But is this enough, I mean just look at the last comment
above. To my opinion, a comment to be a comment must start with -- and the
next nonblank character should not be - or >.

That's for now. Please give me some feedback with your thoughts and tell me
if you would like the comment handling mechanism of WGet to change. By the
way, who was written the current one? Maybe, he can help us with his
experience.

Regards,
George Prekas.