Page 1 of 1

quotation marks

Posted: Tue Jan 21, 2014 11:10 pm
by sebastienlavandier
Hi,

I use the Oxygen component, and I want to know how I can change the default value of the quotation marks.
I want change the "" to << >>.

Do you have an idea for do that ?

Thanks in advance for your help.
Sébastien

Re: quotation marks

Posted: Wed Jan 22, 2014 12:11 pm
by alex_jitianu
Hi,

There is a built-in auto correct support that replaces simple quotes with a character of your choice. Since you are working with the author component there are a couple of possible approaches:
- Configure the auto correct in an Oxygen standalone preferences and then provide the option file as default options.
- You can use the API to set the auto correct option:

Code: Select all

AuthorComponentFactory.getInstance().setObjectProperty("auto.correct.double.quotes", new AutoCorrectQuotesOptions('\u00AB', '\u00BB', true));
- You can implement this auto correct behavior yourself on the AuthorDocumentFilter.insertText() or the AuthorSchemaAwareEditingHandler.handleTyping() callback. We already have some sample code on how to replace quotes using an AuthorDocumentFilter in the User guide.

Best regards,
Alex

Re: quotation marks

Posted: Mon Jan 27, 2014 5:42 pm
by sebastienlavandier
Hi,
Thanks for your quick answer.

I only have a licence for the 14.X version
The AutoCorrect options are in the 15.X version ?

Thanks in advance.
Seb

Re: quotation marks

Posted: Mon Jan 27, 2014 5:55 pm
by alex_jitianu
Hi,

The AutoCorrect options were indeed introduced in Oxygen v15.0. For version 14 you can still use the last approach (the one with AuthorDocumentFilter).

Best regards,
Alex

Re: quotation marks

Posted: Mon Feb 03, 2014 11:01 am
by sebastienlavandier
Thanks for your help.

Sébastien