Smart Quotes
CUE has a "smart quotes" function that can automatically convert default "straight" single or double quotes to "curly" quotes of various kinds. Different languages (and different publishers) have different quotation mark conventions, so this function is configurable, allowing you to set up CUE to use the quotation marks you require.
Smart quoting is disabled by default. To enable it:
-
If necessary, switch user to
root
.$
sudo su -
Open
/etc/escenic/cue-web-3.0/config.yml
for editing. For example:#
nano/etc/escenic/cue-web-3.0/config.yml
-
Add a
useSmartQuotes
property, and set it totrue
:useSmartQuotes: true
This enables the smart quotes function.
-
Add a
smartQuotes
property with four child properties calledopenDoubleCurly
,closeDoubleCurly
,openSingleCurly
andcloseSingleCurly
. Use these properties to specify the quotation marks you want to use. Straight double quotation marks are replaced by the characters you specify withopenDoubleCurly
andcloseDoubleCurly
, and straight single quotation marks are replaced by the characters you specify withopenSingleCurly
andcloseSingleCurly
. The following settings, for example:useSmartQuotes: true smartQuotes: openDoubleCurly: "„" closeDoubleCurly: "”" openSingleCurly: "‘" closeSingleCurly: "’"
will replace "quotation" with „quotation” and 'quotation' with ‘quotation’.
-
Save the file.
-
Enter:
#
dpkg-reconfigure cue-web-3.0This reconfigures CUE with the changes you have made.