Pythonを使用して、プレーンテキスト入力の引用符を「教育」し、それらをコンテキスト構文に変換したいと思います。(再帰的な) 例を次に示します。
原文:
Using python, I would like "educate" quotes of
a plain text input and turn them into the Context syntax.
Here is a (recursive) example:
出力:
Using python, I would like \quotation{educate} quotes of
a plain text input and turn them into the Context syntax.
Here is a (recursive) example:
ネストされた引用も処理したい:
原文:
Original text: "Using python, I would like 'educate' quotes of
a plain text input and turn them into the Context syntax.
Here is a (recursive) example:"
出力:
Original text: \quotation {Using python, I would like \quotation{educate} quotes of
a plain text input and turn them into the Context syntax.
Here is a (recursive) example:}
そしてもちろん、次のようなエッジ ケースを処理する必要があります。
She said "It looks like we are back in the '90s"
コンテキスト引用符の仕様は次のとおりです。
http://wiki.contextgarden.net/Nested_quotations#Nested_quotations_in_MkIV
そのような状況への最も敏感なアプローチは何ですか? どうもありがとうございました!