Files
MagicSetEditor2/doc/function/curly_quotes.txt
T
twanvl 4f644756f6 Continuing documenting functions
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@575 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-14 15:13:46 +00:00

18 lines
607 B
Plaintext

Function: curly_quotes
--Usage--
> curly_quotes(some_tagged_string)
Make quotes 'curly'.
Single and double quotation marks are changed to opening or closing versions depending on where they appear in the text.
--Parameters--
! Parameter Type Description
| @input@ [[type:tagged string]] String to make quotes curly in.
--Examples--
>>> curly_quotes("He said: 'This is cool!', she said: \"No way!\" ")
>>> == "He said: ‘This is cool!’, she said: “No way!” "
>>> curly_quotes("Also: ’Wrong quotes‘ ")
>>> == "Also: ‘Wrong quotes’ "