Jump to content
You must now use your email address to sign in [click for more info] ×

Change straight quotes to typographic quotes


Recommended Posts

Is there a way to quickly change straight single and double quotes to typographical (curly) quotes in a selection of text? I know Publisher will currently change those things when typing, but it does not appear to do so when pasting from another source.

So far, I can only think to run four regex replaces, but as the find/replace is cumbersome for at multiple searches (since we can't currently save searches), I am wondering if there is a better solution. If not, I think it could be a useful feature to add, akin to the various change case operations in the Text->Capitalization menus.

Link to comment
Share on other sites

There could at least be factory search clauses for finding straight single and double quotation marks (similarly as in InDesign), which would be a specific case (so that searching simply by inserting straight double or single quotation mark from the keyboard would search ANY kind of double or single quotation marks). Currently straight double and single quotation marks from the keyboard actually search specifically straight marks also in the text, but this makes it awkardly difficult to check usage of quotes in general. 

Often it is necessary to find erronous quotation marks, which typically means that you need to enter something like Find <space><wrong opening quotation mark> Replace <space><correct opening quotation mark>, and same for the closing quotation mark, so having left and right opening and closing single and double quotation marks as separate choise are less useful. In practice you need to insert exact glyphs (with the space character) to find erroneous usage. 

Link to comment
Share on other sites

To answer the actual question the quickest way might be just typing " in the FInd box (which means search straight double quotation marks) and then typing " from keyboard for each found instance (unfortunately replacing " in find-replace does not apply the auto-correction, not even when replacing with the space character). If you have typographic auto-correction for quotation marks enabled, you'd get language specific curly marks "automatically". Otherwise you need to search for <space>" and replace with language specific double quotation glyph (and do the same for single quotation marks, and closing quotation marks).

But "local aware" regex might give an easy solution -- provided that it is smart enough to automatically apply locale (language specific) opening and closing quotation marks, to avoid typing in specific glyphs? 

EDIT: It is worth a consideration to change the behavior of typing " and ' from the keyboard in Find and Replace boxes. If they meant "any" double or single quotation mark, then you could type in Find box a symbol for straight double quotation mark (e.g. ^", as in InDesign), and in Replace box type simply ". When replacing, language specific typographic quotation marks would be inserted to replace the straight quotes smartly so that opening and closing context is checked without the user needing to type in preceding or trailing spaces (not to mention language specific glyphs). This is how it works in InDesign and it is most often adequate. For more complex things one would need to write a script. 

Link to comment
Share on other sites

  • 4 months later...

I would like to see this as well. Like jrkay, I get texts from various people and sources, and there is no consistency about quotes - I get some smart, and some straight. A quick way to replace straight quotes in a body of text would be really helpful.

Link to comment
Share on other sites

  • 10 months later...
  • 3 months later...

+1. Converting inch-marks to quotation marks automatically is a massive timesaver, and something even cheesy word processors and presentation apps will do for you. 

Windows 7 & 10 64-bit, Dual Xeon workstation(s) 64gb RAM, and single i7 laptop 32gb RAM

Link to comment
Share on other sites

  • 2 months later...
4 hours ago, Fixx said:

But it should do it RIGHT, all too often my quote marks are upside down... basically it should follow language set in text styles.

If it doesn't, I hope you've reported that as a bug.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

  • 11 months later...
  • 5 months later...

I think the Mac already includes these commands in the Edit > Substitutions menu. At least, I find it unchanged in many text editors. It wouldn't be bad if it was included, as is, at least in the Mac version.

Paolo

 

Link to comment
Share on other sites

59 minutes ago, PaoloT said:

I think the Mac already includes these commands in the Edit > Substitutions menu. At least, I find it unchanged in many text editors. It wouldn't be bad if it was included, as is, at least in the Mac version.

Paolo

 

Not in Publisher - there is no Edit: Substitutions menu. Instead, the equivalent function in Publisher is handled via the Auto-correct section in Publisher preferences. The problem is that both of these—whether Affinity's solution or Mac default—only replace text as you're typing, but it doesn't work on existing text, such as pasting from elsewhere. That was the point of my original request some time ago. I still would welcome the ability to run that correction on a text selection, but until such time, I have regex.

Link to comment
Share on other sites

5 minutes ago, garrettm30 said:

but it doesn't work on existing text, such as pasting from elsewhere.

I'm probably not going to play with it, but in theory I think you could use AutoHotKey (on Windows) to copy selected text, delete it, and retype it back into the input field. That should allow Publisher's Autocorrect functions to work on it.

Possibly a similar helper application on Mac could provide equivalent functionality.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.