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

lacerto

Members
  • Posts

    5,783
  • Joined

Posts posted by lacerto

  1. 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. 

  2. 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. 

×
×
  • 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.