2 * \file InsetQuotes.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Jean-Marc Lasgouttes
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
14 #include "InsetQuotes.h"
17 #include "BufferParams.h"
18 #include "BufferView.h"
20 #include "Dimension.h"
23 #include "FuncStatus.h"
24 #include "FuncRequest.h"
26 #include "LaTeXFeatures.h"
29 #include "MetricsInfo.h"
30 #include "OutputParams.h"
31 #include "output_xhtml.h"
32 #include "Paragraph.h"
33 #include "ParIterator.h"
34 #include "texstream.h"
36 #include "frontends/FontMetrics.h"
37 #include "frontends/Painter.h"
39 #include "support/debug.h"
40 #include "support/docstring.h"
41 #include "support/docstream.h"
42 #include "support/gettext.h"
43 #include "support/lstrings.h"
44 #include "support/textutils.h"
49 using namespace lyx::support;
55 /* codes used to read/write quotes to LyX files
57 * e ``english'' (`inner quotation')
58 * s ''swedish'' ('inner quotation')
59 * g ,,german`` (,inner quotation`)
60 * p ,,polish'' (,inner quotation')
61 * c <<swiss>> (<inner quotation>)
62 * a >>danish<< (>inner quotation<)
63 * q "plain" ('inner quotation')
64 * b `british' (``inner quotation'')
65 * w >>swedishg>> ('inner quotation') ["g" = Guillemets]
66 * f <<french>> (``inner quotation'')
67 * i <<frenchin>> (<<inner quotation>>) ["in" = Imprimerie Nationale]
68 * r <<russian>> (,,inner quotation``)
69 * j [U+300C]cjk[U+300D] ([U+300E]inner quotation[U+300F]) [CORNER BRACKETS]
70 * k [U+300A]cjkangle[U+300B] ([U+3008]inner quotation[U+3009]) [ANGLE BRACKETS]
71 * x dynamic style (inherits document settings)
74 char const * const style_char = "esgpcaqbwfirjkx";
75 char const * const side_char = "lr" ;
76 char const * const level_char = "sd";
81 /////////////////////////////////////////////////////////////////////
85 ///////////////////////////////////////////////////////////////////////
87 InsetQuotesParams quoteparams;
90 int InsetQuotesParams::stylescount() const
92 return strlen(style_char);
96 char_type InsetQuotesParams::getQuoteChar(QuoteStyle const & style, QuoteLevel const & level,
97 QuoteSide const & side) const
99 // main opening quotation mark
100 char_type left_primary;
101 // main closing quotation mark
102 char_type right_primary;
103 // secondary (inner, 'single') opening quotation mark
104 char_type left_secondary;
105 // secondary (inner, 'single') closing quotation mark
106 char_type right_secondary;
109 case EnglishQuotes: {
110 left_primary = 0x201c; // ``
111 right_primary = 0x201d; // ''
112 left_secondary = 0x2018; // `
113 right_secondary = 0x2019; // '
116 case SwedishQuotes: {
117 left_primary = 0x201d; // ''
118 right_primary = 0x201d; // ''
119 left_secondary = 0x2019; // '
120 right_secondary = 0x2019; // '
124 left_primary = 0x201e; // ,,
125 right_primary = 0x201c; // ``
126 left_secondary = 0x201a; // ,
127 right_secondary = 0x2018; // `
131 left_primary = 0x201e; // ,,
132 right_primary = 0x201d; // ''
133 left_secondary = 0x201a; // ,
134 right_secondary = 0x2019; // '
138 left_primary = 0x00ab; // <<
139 right_primary = 0x00bb; // >>
140 left_secondary = 0x2039; // <
141 right_secondary = 0x203a; // >
145 left_primary = 0x00bb; // >>
146 right_primary = 0x00ab; // <<
147 left_secondary = 0x203a; // >
148 right_secondary = 0x2039; // <
152 left_primary = 0x0022; // "
153 right_primary = 0x0022; // "
154 left_secondary = 0x0027; // '
155 right_secondary = 0x0027; // '
158 case BritishQuotes: {
159 left_primary = 0x2018; // `
160 right_primary = 0x2019; // '
161 left_secondary = 0x201c; // ``
162 right_secondary = 0x201d; // ''
165 case SwedishGQuotes: {
166 left_primary = 0x00bb; // >>
167 right_primary = 0x00bb; // >>
168 left_secondary = 0x2019; // '
169 right_secondary = 0x2019; // '
173 left_primary = 0x00ab; // <<
174 right_primary = 0x00bb; // >>
175 left_secondary = 0x201c; // ``
176 right_secondary = 0x201d; // ''
179 case FrenchINQuotes:{
180 left_primary = 0x00ab; // <<
181 right_primary = 0x00bb; // >>
182 left_secondary = 0x00ab; // <<
183 right_secondary = 0x00bb; // >>
187 left_primary = 0x00ab; // <<
188 right_primary = 0x00bb; // >>
189 left_secondary = 0x201e; // ,,
190 right_secondary = 0x201c; // ``
194 left_primary = 0x300c; // LEFT CORNER BRACKET
195 right_primary = 0x300d; // RIGHT CORNER BRACKET
196 left_secondary = 0x300e; // LEFT WHITE CORNER BRACKET
197 right_secondary = 0x300f; // RIGHT WHITE CORNER BRACKET
200 case CJKAngleQuotes:{
201 left_primary = 0x300a; // LEFT DOUBLE ANGLE BRACKET
202 right_primary = 0x300b; // RIGHT DOUBLE ANGLE BRACKET
203 left_secondary = 0x3008; // LEFT ANGLE BRACKET
204 right_secondary = 0x3009; // RIGHT ANGLE BRACKET
210 left_primary = 0x003f; // ?
211 right_primary = 0x003f; // ?
212 left_secondary = 0x003f; // ?
213 right_secondary = 0x003f; // ?
218 case SecondaryQuotes:
219 return (side == OpeningQuote) ? left_secondary : right_secondary;
221 return (side == OpeningQuote) ? left_primary : right_primary;
231 docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op) const
240 res = "\\quotesinglbase";
245 res = "\\textquoteleft";
252 res = "\\textquoteright";
261 res = "\\guilsinglleft";
268 res = "\\guilsinglright";
271 case 0x0027: {// ' (plain)
272 res = "\\textquotesingle";
278 else if (op == "babel")
281 res = "\\quotedblbase";
286 res = "\\textquotedblleft";
293 res = "\\textquotedblright";
301 else if (op == "babel")
304 res = "\\guillemotleft";
310 else if (op == "babel")
313 res = "\\guillemotright";
317 res = "\\textquotedbl";
320 // The following are fakes
321 // This is just to get something symbolic
322 // in encodings where this chars would not be used ayway
323 case 0x300c: // LEFT CORNER BRACKET
324 res = "\\ensuremath{\\lceil}";
326 case 0x300d: // RIGHT CORNER BRACKET
327 res = "\\ensuremath{\\rfloor}";
329 case 0x300e: // LEFT WHITE CORNER BRACKET
330 res = "\\ensuremath{\\llceil}";
332 case 0x300f: // RIGHT WHITE CORNER BRACKET
333 res = "\\ensuremath{\\rrfloor}";
335 case 0x300a: // LEFT DOUBLE ANGLE BRACKET
336 res = "\\ensuremath{\\langle\\kern-2.5pt\\langle}";
338 case 0x300b: // RIGHT DOUBLE ANGLE BRACKET
339 res = "\\ensuremath{\\rangle\\kern-2.5pt\\rangle}";
341 case 0x3008: // LEFT ANGLE BRACKET
342 res = "\\ensuremath{\\langle}";
344 case 0x3009: // RIGHT ANGLE BRACKET
345 res = "\\ensuremath{\\rangle}";
351 return from_ascii(res);
355 docstring InsetQuotesParams::getHTMLQuote(char_type c) const
375 case 0x0027: // ' (plain)
396 case 0x300c: // LEFT CORNER BRACKET
399 case 0x300d: // RIGHT CORNER BRACKET
402 case 0x300e: // LEFT WHITE CORNER BRACKET
405 case 0x300f: // RIGHT WHITE CORNER BRACKET
408 case 0x300a: // LEFT DOUBLE ANGLE BRACKET
411 case 0x300b: // RIGHT DOUBLE ANGLE BRACKET
414 case 0x3008: // LEFT ANGLE BRACKET
417 case 0x3009: // RIGHT ANGLE BRACKET
424 return from_ascii(res);
428 map<string, docstring> InsetQuotesParams::getTypes() const
430 map<string, docstring> res;
438 // get all quote types
439 for (sty = 0; sty < stylescount(); ++sty) {
440 style = QuoteStyle(sty);
441 if (style == DynamicQuotes)
443 for (sid = 0; sid < 2; ++sid) {
444 side = QuoteSide(sid);
445 for (lev = 0; lev < 2; ++lev) {
446 type += style_char[style];
447 type += side_char[sid];
448 level = QuoteLevel(lev);
449 type += level_char[lev];
450 res[type] = docstring(1, getQuoteChar(style, level, side));
459 docstring const InsetQuotesParams::getGuiLabel(QuoteStyle const & qs)
461 return bformat(_("%1$souter%2$s and %3$sinner%4$s[[quotation marks]]"),
462 docstring(1, quoteparams.getQuoteChar(qs, PrimaryQuotes, OpeningQuote)),
463 docstring(1, quoteparams.getQuoteChar(qs, PrimaryQuotes, ClosingQuote)),
464 docstring(1, quoteparams.getQuoteChar(qs, SecondaryQuotes, OpeningQuote)),
465 docstring(1, quoteparams.getQuoteChar(qs, SecondaryQuotes, ClosingQuote))
470 /////////////////////////////////////////////////////////////////////
474 ///////////////////////////////////////////////////////////////////////
476 InsetQuotes::InsetQuotes(Buffer * buf, string const & str) : Inset(buf)
479 global_style_ = buf->masterBuffer()->params().quotes_style;
480 fontspec_ = buf->masterBuffer()->params().useNonTeXFonts;
483 global_style_ = InsetQuotesParams::EnglishQuotes;
491 InsetQuotes::InsetQuotes(Buffer * buf, char_type c, InsetQuotesParams::QuoteLevel level,
492 string const & side, string const & style)
493 : Inset(buf), level_(level), pass_thru_(false), fontspec_(false)
495 bool dynamic = false;
497 global_style_ = buf->masterBuffer()->params().quotes_style;
498 fontenc_ = (buf->masterBuffer()->params().fontenc == "global")
499 ? lyxrc.fontenc : buf->params().fontenc;
500 dynamic = buf->masterBuffer()->params().dynamic_quotes;
501 fontspec_ = buf->masterBuffer()->params().useNonTeXFonts;
503 global_style_ = InsetQuotesParams::EnglishQuotes;
504 fontenc_ = lyxrc.fontenc;
508 style_ = dynamic ? InsetQuotesParams::DynamicQuotes : global_style_;
510 style_ = getStyle(style);
512 if (side == "left" || side == "opening")
513 side_ = InsetQuotesParams::OpeningQuote;
514 else if (side == "right" || side == "closing")
515 side_ = InsetQuotesParams::ClosingQuote;
521 docstring InsetQuotes::layoutName() const
523 return from_ascii("Quotes");
527 void InsetQuotes::setSide(char_type c)
529 // Decide whether opening or closing quote
530 if (lyx::isSpace(c) || isOpenPunctuation(c))
531 side_ = InsetQuotesParams::OpeningQuote;// opening quote
533 side_ = InsetQuotesParams::ClosingQuote;// closing quote
537 void InsetQuotes::parseString(string const & s, bool const allow_wildcards)
540 if (str.length() != 3) {
541 lyxerr << "ERROR (InsetQuotes::InsetQuotes):"
542 " bad string length." << endl;
548 // '.' wildcard means: keep current stylee
549 if (!allow_wildcards || str[0] != '.') {
550 for (i = 0; i < quoteparams.stylescount(); ++i) {
551 if (str[0] == style_char[i]) {
552 style_ = InsetQuotesParams::QuoteStyle(i);
556 if (i >= quoteparams.stylescount()) {
557 LYXERR0("ERROR (InsetQuotes::InsetQuotes):"
558 " bad style specification.");
559 style_ = InsetQuotesParams::EnglishQuotes;
563 // '.' wildcard means: keep current side
564 if (!allow_wildcards || str[1] != '.') {
565 for (i = 0; i < 2; ++i) {
566 if (str[1] == side_char[i]) {
567 side_ = InsetQuotesParams::QuoteSide(i);
572 LYXERR0("ERROR (InsetQuotes::InsetQuotes):"
573 " bad side specification.");
574 side_ = InsetQuotesParams::OpeningQuote;
578 // '.' wildcard means: keep current level
579 if (!allow_wildcards || str[2] != '.') {
580 for (i = 0; i < 2; ++i) {
581 if (str[2] == level_char[i]) {
582 level_ = InsetQuotesParams::QuoteLevel(i);
587 LYXERR0("ERROR (InsetQuotes::InsetQuotes):"
588 " bad level specification.");
589 level_ = InsetQuotesParams::PrimaryQuotes;
595 InsetQuotesParams::QuoteStyle InsetQuotes::getStyle(string const & s)
597 InsetQuotesParams::QuoteStyle qs = InsetQuotesParams::EnglishQuotes;
600 qs = InsetQuotesParams::EnglishQuotes;
601 else if (s == "swedish")
602 qs = InsetQuotesParams::SwedishQuotes;
603 else if (s == "german")
604 qs = InsetQuotesParams::GermanQuotes;
605 else if (s == "polish")
606 qs = InsetQuotesParams::PolishQuotes;
607 else if (s == "swiss")
608 qs = InsetQuotesParams::SwissQuotes;
609 else if (s == "danish")
610 qs = InsetQuotesParams::DanishQuotes;
611 else if (s == "plain")
612 qs = InsetQuotesParams::PlainQuotes;
613 else if (s == "british")
614 qs = InsetQuotesParams::BritishQuotes;
615 else if (s == "swedishg")
616 qs = InsetQuotesParams::SwedishGQuotes;
617 else if (s == "french")
618 qs = InsetQuotesParams::FrenchQuotes;
619 else if (s == "frenchin")
620 qs = InsetQuotesParams::FrenchINQuotes;
621 else if (s == "russian")
622 qs = InsetQuotesParams::RussianQuotes;
624 qs = InsetQuotesParams::CJKQuotes;
625 else if (s == "cjkangle")
626 qs = InsetQuotesParams::CJKAngleQuotes;
627 else if (s == "dynamic")
628 qs = InsetQuotesParams::DynamicQuotes;
634 docstring InsetQuotes::displayString() const
636 // In PassThru, we use straight quotes
638 return (level_ == InsetQuotesParams::PrimaryQuotes) ?
639 from_ascii("\"") : from_ascii("'");
641 InsetQuotesParams::QuoteStyle style =
642 (style_ == InsetQuotesParams::DynamicQuotes) ? global_style_ : style_;
644 docstring retdisp = docstring(1, quoteparams.getQuoteChar(style, level_, side_));
646 // in French, thin spaces are added inside double guillemets
647 if (prefixIs(context_lang_, "fr")
648 && level_ == InsetQuotesParams::PrimaryQuotes
649 && (style == InsetQuotesParams::SwissQuotes
650 || style == InsetQuotesParams::FrenchQuotes
651 || style == InsetQuotesParams::FrenchINQuotes)) {
652 // THIN SPACE (U+2009)
653 char_type const thin_space = 0x2009;
654 if (side_ == InsetQuotesParams::OpeningQuote)
655 retdisp += thin_space;
657 retdisp = thin_space + retdisp;
664 void InsetQuotes::metrics(MetricsInfo & mi, Dimension & dim) const
666 FontInfo & font = mi.base.font;
667 frontend::FontMetrics const & fm = theFontMetrics(font);
668 dim.asc = fm.maxAscent();
669 dim.des = fm.maxDescent();
670 dim.wid = fm.width(displayString());
674 void InsetQuotes::draw(PainterInfo & pi, int x, int y) const
676 FontInfo font = pi.base.font;
677 if (style_ == InsetQuotesParams::DynamicQuotes)
678 font.setPaintColor(Color_special);
680 font.setPaintColor(pi.textColor(font.realColor()));
681 pi.pain.text(x, y, displayString(), font);
685 string InsetQuotes::getType() const
688 text += style_char[style_];
689 text += side_char[side_];
690 text += level_char[level_];
695 void InsetQuotes::write(ostream & os) const
697 os << "Quotes " << getType();
701 void InsetQuotes::read(Lexer & lex)
703 lex.setContext("InsetQuotes::read");
705 parseString(lex.getString());
706 lex >> "\\end_inset";
710 void InsetQuotes::doDispatch(Cursor & cur, FuncRequest & cmd)
712 switch (cmd.action()) {
713 case LFUN_INSET_MODIFY: {
714 string const first_arg = cmd.getArg(0);
715 bool const change_type = first_arg == "changetype";
718 // this will not be handled higher up
722 cur.recordUndoInset(this);
723 parseString(cmd.getArg(1), true);
724 cur.buffer()->updateBuffer();
728 Inset::doDispatch(cur, cmd);
734 bool InsetQuotes::getStatus(Cursor & cur, FuncRequest const & cmd,
735 FuncStatus & flag) const
737 switch (cmd.action()) {
739 case LFUN_INSET_MODIFY: {
740 string const first_arg = cmd.getArg(0);
741 if (first_arg == "changetype") {
742 string const type = cmd.getArg(1);
743 flag.setOnOff(type == getType());
744 flag.setEnabled(!pass_thru_);
747 return Inset::getStatus(cur, cmd, flag);
751 return Inset::getStatus(cur, cmd, flag);
756 void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
758 InsetQuotesParams::QuoteStyle style =
759 (style_ == InsetQuotesParams::DynamicQuotes) ? global_style_ : style_;
760 char_type quotechar = quoteparams.getQuoteChar(style, level_, side_);
763 // In pass-thru context, we output plain quotes
764 if (runparams.pass_thru)
765 qstr = (level_ == InsetQuotesParams::PrimaryQuotes) ? from_ascii("\"") : from_ascii("'");
766 else if (style == InsetQuotesParams::PlainQuotes && fontspec_) {
767 // For XeTeX and LuaTeX,we need to disable mapping to get straight
768 // quotes. We define our own commands that do this
769 qstr = (level_ == InsetQuotesParams::PrimaryQuotes) ?
770 from_ascii("\\textquotedblplain") : from_ascii("\\textquotesingleplain");
772 else if (runparams.use_polyglossia) {
773 // For polyglossia, we directly output the respective unicode chars
774 // (spacing and kerning is then handled respectively)
775 qstr = docstring(1, quotechar);
777 else if (style == InsetQuotesParams::CJKQuotes || style == InsetQuotesParams::CJKAngleQuotes) {
778 if (runparams.encoding && runparams.encoding->encodable(quotechar))
779 qstr = docstring(1, quotechar);
781 qstr = quoteparams.getLaTeXQuote(quotechar, "int");
783 else if ((style == InsetQuotesParams::SwissQuotes
784 || style == InsetQuotesParams::FrenchQuotes
785 || style == InsetQuotesParams::FrenchINQuotes)
786 && level_ == InsetQuotesParams::PrimaryQuotes
787 && prefixIs(runparams.local_font->language()->code(), "fr")) {
788 // Specific guillemets of French babel
789 // including correct French spacing
790 if (side_ == InsetQuotesParams::OpeningQuote)
791 qstr = from_ascii("\\og");
793 qstr = from_ascii("\\fg");
794 } else if (fontenc_ == "T1"
795 && !runparams.local_font->language()->internalFontEncoding()) {
796 // Quotation marks for T1 font encoding
798 qstr = quoteparams.getLaTeXQuote(quotechar, "t1");
799 } else if (runparams.local_font->language()->internalFontEncoding()) {
800 // Quotation marks for internal font encodings
801 // (ligatures not featured)
802 qstr = quoteparams.getLaTeXQuote(quotechar, "int");
803 #ifdef DO_USE_DEFAULT_LANGUAGE
804 } else if (doclang == "default") {
806 } else if (!runparams.use_babel || runparams.isFullUnicode()) {
808 // Standard quotation mark macros
809 // These are also used by babel
810 // without fontenc (XeTeX/LuaTeX)
811 qstr = quoteparams.getLaTeXQuote(quotechar, "ot1");
813 // Babel shorthand quotation marks (for T1/OT1)
814 qstr = quoteparams.getLaTeXQuote(quotechar, "babel");
817 if (!runparams.pass_thru) {
818 // Guard against unwanted ligatures with preceding text
819 char_type const lastchar = os.lastChar();
820 // !` ?` => !{}` ?{}`
821 if (prefixIs(qstr, from_ascii("`"))
822 && (lastchar == '!' || lastchar == '?'))
824 // ``` ''' ,,, <<< >>>
825 // => `{}`` '{}'' ,{},, <{}<< >{}>>
826 if (contains(from_ascii(",'`<>"), lastchar)
827 && prefixIs(qstr, lastchar))
833 if (prefixIs(qstr, from_ascii("\\")) && !suffixIs(qstr, '}'))
834 // properly terminate the command depending on the context
839 int InsetQuotes::plaintext(odocstringstream & os,
840 OutputParams const &, size_t) const
842 docstring const str = displayString();
848 docstring InsetQuotes::getQuoteEntity() const {
849 InsetQuotesParams::QuoteStyle style =
850 (style_ == InsetQuotesParams::DynamicQuotes) ? global_style_ : style_;
851 docstring res = quoteparams.getHTMLQuote(quoteparams.getQuoteChar(style, level_, side_));
852 // in French, thin spaces are added inside double guillemets
853 if (prefixIs(context_lang_, "fr")
854 && level_ == InsetQuotesParams::PrimaryQuotes
855 && (style == InsetQuotesParams::FrenchQuotes
856 || style == InsetQuotesParams::FrenchINQuotes
857 || style == InsetQuotesParams::SwissQuotes)) {
858 // THIN SPACE (U+2009)
859 docstring const thin_space = from_ascii(" ");
860 if (side_ == InsetQuotesParams::OpeningQuote)
863 res = thin_space + res;
869 int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
871 os << getQuoteEntity();
876 docstring InsetQuotes::xhtml(XHTMLStream & xs, OutputParams const &) const
878 xs << XHTMLStream::ESCAPE_NONE << getQuoteEntity();
883 void InsetQuotes::toString(odocstream & os) const
885 os << displayString();
889 void InsetQuotes::forOutliner(docstring & os, size_t const, bool const) const
891 os += displayString();
895 void InsetQuotes::updateBuffer(ParIterator const & it, UpdateType /* utype*/)
897 BufferParams const & bp = buffer().masterBuffer()->params();
898 pass_thru_ = it.paragraph().isPassThru();
899 context_lang_ = it.paragraph().getFontSettings(bp, it.pos()).language()->code();
900 fontenc_ = (bp.fontenc == "global") ? lyxrc.fontenc : bp.fontenc;
901 global_style_ = bp.quotes_style;
902 fontspec_ = bp.useNonTeXFonts;
906 void InsetQuotes::validate(LaTeXFeatures & features) const
908 InsetQuotesParams::QuoteStyle style =
909 (style_ == InsetQuotesParams::DynamicQuotes) ? global_style_ : style_;
910 char_type type = quoteparams.getQuoteChar(style, level_, side_);
912 // Handle characters that are not natively supported by
913 // specific font encodings (we roll our own definitions)
914 #ifdef DO_USE_DEFAULT_LANGUAGE
915 if (features.bufferParams().language->lang() == "default"
917 if (!features.useBabel()
919 && !features.runparams().isFullUnicode() && fontenc_ != "T1") {
922 features.require("quotesinglbase");
925 features.require("guilsinglleft");
928 features.require("guilsinglright");
931 features.require("quotedblbase");
934 features.require("guillemotleft");
937 features.require("guillemotright");
943 // Handle straight quotation marks. These need special care
944 // in most output formats
947 if (features.runparams().isFullUnicode() && fontspec_)
948 features.require("textquotesinglep");
950 features.require("textcomp");
954 if (features.runparams().isFullUnicode() && fontspec_)
955 features.require("textquotedblp");
956 else if (fontenc_ != "T1")
957 features.require("textquotedbl");
960 // we fake these from math
961 case 0x300e: // LEFT WHITE CORNER BRACKET
962 case 0x300f: // RIGHT WHITE CORNER BRACKET
963 if (!features.runparams().encoding
964 || !features.runparams().encoding->encodable(type))
965 features.require("stmaryrd");
973 string InsetQuotes::contextMenuName() const
975 return "context-quote";