🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1088

Re: English numbers to French?

#1088
From: jongware
Date: Mon, 23 Feb 2009 20:33
33 lines
1288 bytes
(?) My previous answer is gone in digital space. (Can anyone hear me scream?)

GREP to the rescue. Search for

      ,(\d\d\d)




and replace with

      ~S$1




This replaces the commas in "12,345.67" with a fixed space. Next, only periods inbetween two digits should be replaced with a comma, right? Search for

      (\d)\.(\d)




and replace with

      $1,$2




The period in the Search expression needs a backslash escape because it's a special character in GREP searches ("any character").

If you need to run this on multiple documents, store each search-and-replace sequence under a logical name, and search this forum for the little script to chain them automatically.
Technical Details
Message-ID: <59b80750.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b80750.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a07311f0b6c0cfd5
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: English numbers to French?
Message-ID: <59b80750.2@webcrossing.la2eafNXanI>
Date: Mon, 23 Feb 2009 12:33:45 -0800
References: <59b80750.-1@webcrossing.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit