Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
25th February 2004, 22:48 | #1 | Link | |
C64
Join Date: Apr 2002
Location: Austria
Posts: 830
|
did you know: string containing quotes
Up today I didn't knew a way to type a string containing quotes.
Well, you can use chr(34), but that's not really short. I always wondered about the following sentence in the original docu from BenRG: Quote:
e.g. Subtitle(""" now you can put as many " in here as you like""") TeX-Style = Use three quotes at the beginning and the end and you can put in the string single quotes. |
|
26th February 2004, 03:52 | #3 | Link |
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Cool!
AFAIK, TeX does not use the (Python-style?) triple-quote system. As implied by the documentation, TeX uses two backticks (``) followed by two apostrophes (''), but that functionality appears to be broken in AviSynth. I can't say I miss it, and I think it's better as it currently is. TeX-style quotes aren't common outside of TeX, and I prefer canonical syntax over having multiple ways of representing string literals. |
28th February 2004, 22:22 | #9 | Link |
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
I don't think the fact that \ is the line continuation character should be problem. It's only a line continuation character outside of a string. (After all, it's also the line continuation character in C!)
I think the bigger issue is that using it as an escape character will break existing scripts that use it in paths. For example: Code:
AVISource("C:\bar\foo.avi") # \b shouldn't be a backspace frequentPath = "C:\bar\" # we don't want the quote to be escaped Import(frequentPath + "baz.avs") |
Thread Tools | Search this Thread |
Display Modes | |
|
|