[Solved] AutoCorrect doesn't convert existing quotes

Discuss the word processor

[Solved] AutoCorrect doesn't convert existing quotes

Postby sculpordwarf » Thu May 06, 2021 11:06 am

I have a story that I wrote in another program that only has regular straight quotes. I'd like to use OpenOffice to convert them into curly quotes. In Localized Options I checked Replace for Double quotes, and if I type a new sentence, the quotes are converted properly. However, if I want to replace the existing quotes via Format > AutoCorrect > Apply, nothing happens (it does change paragraph indentations and whatnot, but not the quotes).

I made sure the text's language (Tools > Language) is the same English (USA) as in Localized Options. What else am I missing?
Last edited by sculpordwarf on Thu May 06, 2021 11:56 am, edited 1 time in total.
Open Office 4.19 on Windows 10
sculpordwarf
 
Posts: 2
Joined: Thu May 06, 2021 10:58 am

Re: Format > AutoCorrect > Apply doesn't convert existing qu

Postby RoryOF » Thu May 06, 2021 11:38 am

When I need to do this, usually on a downloaded OCRed text file, I use Find and Replace to locate each pattern where a quote is used - for instance, an opening quote is often at start of a line, or after a space, and use Replace All to insert the correct opening curly quote. Ditto for closing quotes.

Find and Replace is so fast that I search for each specific pattern rather than use regular expressions to find all patterns for opening or closing quotes.

For single quotes, as used in text abbreviations and possessives, a single F&R pass usually suffices
Apache OpenOffice 4.1.10 on Xubuntu 20.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32858
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Format > AutoCorrect > Apply doesn't convert existing qu

Postby RoryOF » Thu May 06, 2021 11:48 am

A quick test on a hastily prepared sample file suggests that Autocorrect will change the quotes on Default Style text, but not on Text Body style.
Apache OpenOffice 4.1.10 on Xubuntu 20.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32858
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Format > AutoCorrect > Apply doesn't convert existing qu

Postby Villeroy » Thu May 06, 2021 11:51 am

menu:Find&Replace...
[More Options...]
Check "Regular expressions"
Search: "\< (straight quote in front of word boundary)
Replace: “ (left curly quote)
[Replace All]
Search: \>" (straight quote behind word boundary)
Replace: ” (left curly quote)
[Replace All]
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Villeroy
Volunteer
 
Posts: 30110
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Format > AutoCorrect > Apply doesn't convert existing qu

Postby sculpordwarf » Thu May 06, 2021 11:54 am

RoryOF wrote:A quick test on a hastily prepared sample file suggests that Autocorrect will change the quotes on Default Style text, but not on Text Body style.


I see. Indeed, it changes the quotes in Default style for me, but not the First line indent style that I created (which is most of the text). How strange.

Villeroy wrote:menu:Find&Replace...
[More Options...]
Check "Regular expressions"
Search: "\< (straight quote in front of word boundary)
Replace: “ (left curly quote)
[Replace All]
Search: \>" (straight quote behind word boundary)
Replace: ” (left curly quote)
[Replace All]


I'll use Find & Replace :super: Thanks.
sculpordwarf
 
Posts: 2
Joined: Thu May 06, 2021 10:58 am

Re: Format > AutoCorrect > Apply doesn't convert existing qu

Postby Villeroy » Thu May 06, 2021 11:56 am

RoryOF wrote:A quick test on a hastily prepared sample file suggests that Autocorrect will change the quotes on Default Style text, but not on Text Body style.


Yes, I can reproduce this. Just another bug that has been fixed in LibreOffice.
https://www.libreoffice.org/discover/li ... penoffice/
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Villeroy
Volunteer
 
Posts: 30110
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby John_Ha » Thu May 06, 2021 12:08 pm

Add these macros and run Quotes. It works in 99% of cases.

Code: Select all   Expand viewCollapse view
sub Quotes

'   By bluegecko, 13 January 2010. Public domain.

'jh Regular expressions changed in OOo 3.4 - search at start / end of word changed

'   This is a revised version of the smart quotes routine posted in June 2009 on this
'   same page (http://www.oooforum.org/forum/viewtopic.phtml?p=328916)
'   The macro switches apostrophes and quotation marks (single and double) from
'   their straight (or "dumb") variants to what are variously called "smart", "curly"
'   or "typographer's" quotes, and vice-versa.

'   Although OpenOffice has an apparently similar Autocorrect function, it's buggy
'   in all but the simplest of cases. Autocorrect, if you want to apply it to an entire
'   dcument, is unfortunately also restricted to text formatted in the default paragraph
'   style, so useless if your document is already styled up.

'   This macro provides a solution. It should work correctly in most instances, and should
'   also preserve any character formatting or styling. I've tested it in various contexts,
'   including contemporary quotation formatting (no space on one side of the quotation mark);
'   in older style formatting with spaces on either side of the quotation mark; and, also an
'   old style (Victorian and earlier), with double quotes without closures that were used to
'   mark long quotes split into several paragraphs, where the closing double quote only appears
'   at the end of the last paragraph. The macro should also correctly deal with apostrophes, and,
'   hopefully, any combination or multiple of single quotes and apostrophes.

'   The logic makes some assumptions:
'   1. single quotation marks within words are apostrophes
'   2. if there's an odd number of quotation marks (excluding apostrophes) in a paragraph, the
'   first one is considered to have no closure (as was the norm in the 19th century: quotations
'   spanning several paragraphs had an opening quotation mark at the start of each paragraph,
'   but a closing mark only at the end of the last paragraph)
'   3. stand-alone acute and grave accents are assumed to be single quotation marks, and will
'   be converted as such.

'   The routine uses a subroutine to perform the search and replacements. It uses far more
'   steps than would have been necessary were OpenOffice's implementation of Regular Expressions
'   not so bloody awful (and were OpenOffice not in the habit of trashing character formatting
'   when performing Regular Expression search/replaces on parts of a string).

'   LIMITATIONS - GLOTTAL STOPS
'   The macro does not deal with single quotes used to indicate a glottal stops in some transliterations,
'   for instance Arabic (eg. ’Abdullah). In such transliterations, aleph glottal stops are often
'   written with a single right quotation mark, whilst the reverse form, the ‘ayn, is often written with
'   a left quotation mark.
'   I can't think of a method to reliably detect these without messing up the single quote detection, as
'   even if I used a word list, the opening quote might really be a quote, not a glottal stop.
'   If you do use glottal stops in your documents, I'd suggest you use the correct Unicode characters.
'   In properly encoded multilingual fonts such as Gentium, Linux Libertine and DejaVu (all of them
'   free), the aleph (left-pointing) is at code point 02BE, whilst ‘ayn (right-pointing) is at 02BF.
'   In OpenOffice's "Insert | Special character" dialog, they're under Spacing Modifier Letters.
'
'  Alternative method - do two passes with the following
'  The first pass handles all the close quotes; the second gets the remaining (open) quotes.
'  Search for: ([^ ])"       '   " = straight quotes
'  Replace with: $1”         '   ” = curly close quotes
'  Options/Regular expression: ON
'  Click "Replace All"
'
'  Search for: "             '   " = straight quotes
'  Replace with: “           '   “ = curly open quotes
'  Click "Replace All"
'
'jh Remove the question and set the response = 6 so as to change straight to curly

'jh   a$ = "Use typographer’s quotes?" + Chr(10) + Chr(10) + _
'jh      "— Yes changes all quotation marks and apostrophes to curly ones;" + Chr(10) + _
'jh      "— No changes them all to straight ones;" + Chr(10) + _
'jh      "— Cancel leaves them as they are."
'jh   response = MsgBox(a$,512 + 32 + 3,"Typography - quotes")

'jh   If (response = 2) Then goto noChange                  ' 2 = cancel, so would do nothing

'jh set response to be 6 to change straight quotes to curly quotes

   response = 6        ' set by jh
   
   REM save cursor position
   oViewCursor = ThisComponent.getCurrentController().getViewCursor()
   oTextCursor = oViewCursor.Text.createTextCursorByRange(oViewCursor)

   REM disable screen update
   ThisComponent.lockControllers
   ThisComponent.CurrentController.Frame.ContainerWindow.Enable = False

   REM correct quotes made with acute or grave accents

   FindReplaceQuotes ("´","'","all")                     ' change acute to single quote
   FindReplaceQuotes ("`","'","all")                     ' change grave to single quote

   If (response = 6) Then                              ' APPLY SMART QUOTATION MARKS
   
   REM DOUBLE QUOTES
      DQ = Chr(34)                                 ' Chr(34) is the straight double quote
      FindReplaceQuotes (""+DQ+"[^"+DQ+"]+"+DQ+"","","all")   ' find "....."
      FindReplaceQuotes (""+DQ+"[^"+DQ+"]+","","selection")   ' find "..... within selections
     
'jh  I think that in the above two lines, the first line searches all. 
'jh  The second line searches only the selection

      FindReplaceQuotes (""+DQ+"","“","selection")         ' change  to “
      FindReplaceQuotes ("“[^"+DQ+"“]+"+DQ+"","","all")      ' find “...."
      FindReplaceQuotes (""+DQ+"","”","selection")         ' change " to ”
      FindReplaceQuotes (""+DQ+"","“","all")               ' change remaining quotes to “

   REM SINGLE QUOTES
'jh  I think the following are correct.  Here in case they are needed - but not used below
      SQ   = Chr(39)    ' single quote - straight
      LQc  = Chr(8216)  ' single quote left - curly 
      RQc  = Chr(8217)  ' single quote right - curly
      LDQc = Chr(8220)  ' double quote left - curly
      RDQc = Chr(8221)  ' double quote right - curly
     
'jh   macro works differently if changes are enabled
       
      FindReplaceQuotes ("'","’","all")          ' change all single quotes to right

'jhq FindReplaceQuotes ("’\>","‘","all")   ' change rightquotes before words to leftquotes
'jhq the previous line should only replace "r-quotes before words". It replaces "r-quotes before and after words"
'jhq because??  \< no longer works for non-alpha chars (in macros?) after OOo 3.4.1. So ...

      FindReplaceQuotes ("’","‘","all")          ' change all rightquotes to leftquotes

'jhq Now change back only the "l-quotes after words"
'jhq ...look for (chars)(l-quote)(punctuation or sp). note \) rqd for )

      FindReplaceRegExp ("([a-z0-9])(‘)(\.|\?| |!|,|;|:|\))","$1’$3","all") 'l-quote at end of word changed to r-quote

'jhq ... and we have done it

'jhq Note that FindReplaceQuotes ("z\>","‘","all") works OK for z\> where z is a character.

      FindReplaceQuotes ("([:alnum:])‘([:alnum:])","","all")   ' find leftquotes within words
      FindReplaceQuotes ("‘","’","selection")                  ' change to rightquotes (apostrophes)
' deal with single quotes that have spaces around them
      FindReplaceQuotes (" ’","¨","all")                   ' temporarily change space+rightquote to dieresis (¨)
      FindReplaceQuotes ("¨[^¨]+¨","","all")               ' select all pairs
      FindReplaceQuotes ("¨[^¨]+","","selection")          ' trim selections to exclude closing space+rightquote
      FindReplaceQuotes ("¨"," ‘","selection")             ' replace with leftquote
      FindReplaceQuotes ("¨"," ’","all")                   ' change markers back to rightquotes
' deal with single quotes at start of line, paragraph, or following tabs or starting punctuation
      FindReplaceQuotes ("(\t|[“\[\(\{])’","","all")       ' select rightquotes following opening punctuation or tabs
      FindReplaceQuotes ("’","‘","selection")              ' change to leftquotes
      FindReplaceQuotes ("^’","‘","all")                   ' change rightquotes at new line to leftquotes
      FindReplaceQuotes ("“ ’","","all")                   ' change rightquotes after quotequote+space (2 steps)
      FindReplaceQuotes ("’","‘","selection")

'jh  simplest to leave this - it will never be executed as response was set to 6 above

   Else                                          ' APPLY STRAIGHT QUOTATION MARKS
      FindReplaceQuotes ("‘","'","all")
      FindReplaceQuotes ("’","'","all")
      FindReplaceQuotes ("“",Chr(34),"all")
      FindReplaceQuotes ("”",Chr(34),"all")
   EndIf

   REM restore cursor position
   oViewCursor = ThisComponent.getCurrentController().getViewCursor()
   oViewCursor.gotoRange(oTextCursor,false)
   
   REM reenable screen update
   ThisComponent.CurrentController.Frame.ContainerWindow.Enable = True
   ThisComponent.unlockControllers

   noChange:

'jh  Remove search backwards and regular expressions by running a dummy RESET search with them unticked
   FindReplaceReset ("abc","abc","all")                             ' change abc to abc

End Sub

Sub FindReplaceQuotes (sFind,sReplace,sScope)
   REM sFind: regular expression   
   REM sReplace: if empty, function selects all occurrences of sFind
   REM sScope: set to "all" for entire document, or "selection" to restrict the scope.
   REM function searches backwards (necessary to correctly catch quotes)

   dim document   as object
   dim dispatcher as object
   document   = ThisComponent.CurrentController.Frame
   dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

   dim args1(18) as new com.sun.star.beans.PropertyValue
   args1(0).Name = "SearchItem.StyleFamily"
   args1(0).Value = 2
   args1(1).Name = "SearchItem.CellType"
   args1(1).Value = 0
   args1(2).Name = "SearchItem.RowDirection"
   args1(2).Value = true
   args1(3).Name = "SearchItem.AllTables"
   args1(3).Value = false
   args1(4).Name = "SearchItem.Backward"
   args1(4).Value = true                            ' backward is required for quotes
   args1(5).Name = "SearchItem.Pattern"
   args1(5).Value = false
   args1(6).Name = "SearchItem.Content"
   args1(6).Value = false
   args1(7).Name = "SearchItem.AsianOptions"
   args1(7).Value = false
   args1(8).Name = "SearchItem.AlgorithmType"
   args1(8).Value = 1                                ' search using Regular Expressions
   args1(9).Name = "SearchItem.SearchFlags"
   If sScope = "all" Then
      args1(9).Value = 65536   ' parse entire doc
   Else
      args1(9).Value = 71680   ' parse selection only
   End If
   args1(10).Name = "SearchItem.SearchString"
   args1(10).Value = sFind
   args1(11).Name = "SearchItem.ReplaceString"
   args1(11).Value = sReplace
   args1(12).Name = "SearchItem.Locale"
   args1(12).Value = 255
   args1(13).Name = "SearchItem.ChangedChars"
   args1(13).Value = 2
   args1(14).Name = "SearchItem.DeletedChars"
   args1(14).Value = 2
   args1(15).Name = "SearchItem.InsertedChars"
   args1(15).Value = 2
   args1(16).Name = "SearchItem.TransliterateFlags"
   args1(16).Value = 1280
   args1(17).Name = "SearchItem.Command"
   If sReplace = "" Then
      args1(17).Value = 1      ' find all
   Else
      args1(17).Value = 3      ' replace all
   End If
   args1(18).Name = "Quiet"
   args1(18).Value = true
   dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args1())

End Sub

'========================================================================

Sub FindReplaceReset (sFind,sReplace,sScope)
'jh This sub FindReplaceReset is used merely to untick the Regular Expression and Backwards search boxes.
   REM sFind:     is not a regular expression
   REM sReplace:  if empty, function selects all occurrences of sFind
   REM sScope:    set to "all" for entire document, or "selection" to restrict the scope.
   REM function   searches forwards to untick the box

   dim document   as object
   dim dispatcher as object
   document   = ThisComponent.CurrentController.Frame
   dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

   dim args1(18) as new com.sun.star.beans.PropertyValue
   args1(0).Name = "SearchItem.StyleFamily"
   args1(0).Value = 2
   args1(1).Name = "SearchItem.CellType"
   args1(1).Value = 0
   args1(2).Name = "SearchItem.RowDirection"
   args1(2).Value = true
   args1(3).Name = "SearchItem.AllTables"
   args1(3).Value = false
   args1(4).Name = "SearchItem.Backward"
   args1(4).Value = false                      ' set to false to search forwards so as to untick the box
   args1(5).Name = "SearchItem.Pattern"
   args1(5).Value = false
   args1(6).Name = "SearchItem.Content"
   args1(6).Value = false
   args1(7).Name = "SearchItem.AsianOptions"
   args1(7).Value = false
   args1(8).Name = "SearchItem.AlgorithmType"
   args1(8).Value = 0                          ' set to 0 to untick regular expressions
   args1(9).Name = "SearchItem.SearchFlags"
   If sScope = "all" Then
      args1(9).Value = 65536   ' parse entire doc
   Else
      args1(9).Value = 71680   ' parse selection only
   End If
   args1(10).Name = "SearchItem.SearchString"
   args1(10).Value = sFind
   args1(11).Name = "SearchItem.ReplaceString"
   args1(11).Value = sReplace
   args1(12).Name = "SearchItem.Locale"
   args1(12).Value = 255
   args1(13).Name = "SearchItem.ChangedChars"
   args1(13).Value = 2
   args1(14).Name = "SearchItem.DeletedChars"
   args1(14).Value = 2
   args1(15).Name = "SearchItem.InsertedChars"
   args1(15).Value = 2
   args1(16).Name = "SearchItem.TransliterateFlags"
   args1(16).Value = 1280
   args1(17).Name = "SearchItem.Command"
   If sReplace = "" Then
      args1(17).Value = 1      ' find all
   Else
      args1(17).Value = 3      ' replace all
   End If
   args1(18).Name = "Quiet"
   args1(18).Value = true
   dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args1())

End Sub

Sub FindReplaceRegExp (sFind,sReplace,sScope)
   REM sFind: regular expression
   REM sReplace: if empty, function selects all occurrences of sFind
   REM sScope: set to "all" for entire document, or "selection" to restrict the scope.
   REM function searches backwards (necessary to correctly catch quotes)

   dim document   as object
   dim dispatcher as object
   document   = ThisComponent.CurrentController.Frame
   dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

   dim args1(18) as new com.sun.star.beans.PropertyValue
   args1(0).Name = "SearchItem.StyleFamily"
   args1(0).Value = 2
   args1(1).Name = "SearchItem.CellType"
   args1(1).Value = 0
   args1(2).Name = "SearchItem.RowDirection"
   args1(2).Value = true
   args1(3).Name = "SearchItem.AllTables"
   args1(3).Value = false
   args1(4).Name = "SearchItem.Backward"
   args1(4).Value = true
   args1(5).Name = "SearchItem.Pattern"
   args1(5).Value = false
   args1(6).Name = "SearchItem.Content"
   args1(6).Value = false
   args1(7).Name = "SearchItem.AsianOptions"
   args1(7).Value = false
   args1(8).Name = "SearchItem.AlgorithmType"
   args1(8).Value = 1
   args1(9).Name = "SearchItem.SearchFlags"
   If sScope = "all" Then
      args1(9).Value = 65536   ' parse entire doc
   Else
      args1(9).Value = 71680   ' parse selection only
   End If
   args1(10).Name = "SearchItem.SearchString"
   args1(10).Value = sFind
   args1(11).Name = "SearchItem.ReplaceString"
   args1(11).Value = sReplace
   args1(12).Name = "SearchItem.Locale"
   args1(12).Value = 255
   args1(13).Name = "SearchItem.ChangedChars"
   args1(13).Value = 2
   args1(14).Name = "SearchItem.DeletedChars"
   args1(14).Value = 2
   args1(15).Name = "SearchItem.InsertedChars"
   args1(15).Value = 2
   args1(16).Name = "SearchItem.TransliterateFlags"
   args1(16).Value = 1280
   args1(17).Name = "SearchItem.Command"
   If sReplace = "" Then
      args1(17).Value = 1      ' find all
   Else
      args1(17).Value = 3      ' replace all
   End If
   args1(18).Name = "Quiet"
   args1(18).Value = true
   dispatcher.executeDispatch(document, ".uno:ExecuteSearch", "", 0, args1())

End Sub
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8578
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby MelMaria » Tue Jun 29, 2021 12:47 pm

Hi - I hope someone can help me, as I need to submit a 60-page manuscript by the end of the day. I am trying to convert single straight quotes to curly quotes in an Open Office doc. I can't use find and replace, as I need beginning and end quote marks.

I tried using the code '\< to just replace the opening quotes, as in this thread, but it replaced both beginning and end - see this example: ‘here‘ and ‘there‘

can you help at all?

Thanks
Using OpenOffice 3.4.0 on a MacOS High Sierra 10.13.2
MelMaria
 
Posts: 2
Joined: Tue Jun 29, 2021 12:30 pm

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby John_Ha » Tue Jun 29, 2021 1:01 pm

Give us some example text which includes
  • examples of the quotes which need changing and
  • examples the quotes which do not need changing
Make sure you include all different scenarios. A regular expression search can then be written.

eg 'The quick 'brown' fox jump'd over the lazy dog.' where you only want the quote p't changed.
Last edited by John_Ha on Tue Jun 29, 2021 1:02 pm, edited 1 time in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8578
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby RoryOF » Tue Jun 29, 2021 1:02 pm

When I need to do this, usually on a downloaded book text, rather than use a Regular Expression, I resort to several passes of Find and Replace.

Find ^" replace with “ (More options: regular expressions selected)
Find <space>" replace with <space>“ (no regular expressions selected)
Find "$ replace with ” (More options: regular expressions selected)
Find "<space> replace with ”<space> (no regular expressions selected)

<space> I use to indicate a single space character in the find or replace boxes.

You also need to replace ' with ’ (curly apostrophe). If you have any instances of quotes within quotes, using single apostrophe markers, these are usually so few that you should hand edit the leading single apostrophe to be of the correct type.

 Edit: After the above passes with Find and Replace, a quick Find for " will show up all (hopefully no) instances of unreplaced ". Ditto using ' as the Find term. There should be so few that a hand edit of such instances is trivial. 
Apache OpenOffice 4.1.10 on Xubuntu 20.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32858
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby John_Ha » Tue Jun 29, 2021 1:06 pm

Another thought.

KISS :-) Keep It Simple S.....

Do a Find and Replace but instead of clicking Replace All, step through each quote pressing Replace for those which need changing and pressing Ignore for those which don't.

Do it on a copy in case you make lot's of mistakes and need to get back to the original.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8578
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] AutoCorrect doesn't convert existing quotes

Postby MelMaria » Tue Jun 29, 2021 1:44 pm

Thank you. There are so many quotes in the piece (it is a piece of fiction, so all manner of quotes), so hard to go through piece by piece, but yes maybe that is the best way. I resolved it in the end by using the edit > transformations > convert quotes to smart quotes command in Scrivener (which the original manuscript is in), then copying and pasting. Thank you anyway.

Here is a sample:

‘Wait! Where are you going? What are you doing?’
‘What is she doing? Where is she going?’
‘Marisa, where are you going?’
Uncle Savio sits on the daybed in the hall, looking up, gesticulating. He wears a green checked cotton lunghi and a cream khadi pyjama top; his legs are spread wide apart. He flew into Goa from San Francisco only a week ago, but he has already gone native, thinks Marisa, as she walks down the central staircase, a canvas beach bag on her shoulder, mirrored sunglasses [ mirrored sunglasses]in her thick black curly hair.
‘Ida got out the guest mattresses,’ Savio says, as she reaches the bottom. ‘And she said, Oh, they are so damp!’ He waves his hand in the air with a flourish, a look of unspeakable horror on his face. ‘And so I put them out to dry.’
Using OpenOffice 3.4.0 on a MacOS High Sierra 10.13.2
MelMaria
 
Posts: 2
Joined: Tue Jun 29, 2021 12:30 pm


Return to Writer

Who is online

Users browsing this forum: JeJe and 27 guests