quotation marks

Post here questions and problems related to oXygen frameworks/document types.
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

quotation marks

Post by sebastienlavandier » Tue Jan 21, 2014 11:10 pm

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

alex_jitianu
Posts: 687
Joined: Wed Nov 16, 2005 11:11 am

Re: quotation marks

Post by alex_jitianu » Wed Jan 22, 2014 12:11 pm

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

sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

Re: quotation marks

Post by sebastienlavandier » Mon Jan 27, 2014 5:42 pm

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

alex_jitianu
Posts: 687
Joined: Wed Nov 16, 2005 11:11 am

Re: quotation marks

Post by alex_jitianu » Mon Jan 27, 2014 5:55 pm

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

sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

Re: quotation marks

Post by sebastienlavandier » Mon Feb 03, 2014 11:01 am

Thanks for your help.

Sébastien

Post Reply