[GastForen Programme Print/Bildbearbeitung Adobe InDesign Script funktioniert nur teilweise

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Print/Bildbearbeitung - Photos, Layout, Design
Themen
Beiträge
Moderatoren
Letzter Beitrag

Script funktioniert nur teilweise

JCM-Info
Beiträge gesamt: 11

29. Nov 2007, 16:39
Beitrag # 1 von 5
Bewertung:
(2720 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo,

wir haben ein Problem mit unserem Script.

ID liefert das Script "FindChangeByList.jsx" mit, wir haben die dazugehörige Datei "FindChangeList.txt" erweitet, jetzt funktionieren nur die vordefinierten GREP-Suchläufe und alle Textsuchläufe, aber nicht unsere hinzugefügten GREP-Suchläufe.

Kann jemadn von euch evtl. sagen, was wir dabei falsch gemacht haben, oder wie wir zu unserem Ziel kommen.

Hier die txt Datei

//FindChangeList.txt
//A support file for the InDesign CS3 AppleScript FindChangeByList.applescript
//
//This data file is tab-delimited, with carriage returns separating records.
//
//The format of each record in the file is:
//findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
//
//Where:
//<tab> is a tab character
//findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
//findProperties is a properties record (as text) of the find preferences.
//changeProperties is a properties record (as text) of the change preferences.
//findChangeOptions is a properties record (as text) of the find/change options.
//description is a description of the find/change operation
//
//Very simple example:
//text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash.
//
//More complex example:
//text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price".
//
//All InDesign search metacharacters are allowed in the "find what" and "change to" properties.
//
grep {findWhat:" +"} {changeTo:" "} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all double spaces and replace with single spaces.
grep {findWhat:"\r "} {changeTo:"\r"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all returns followed by a space And replace with single returns.
grep {findWhat:" \r"} {changeTo:"\r"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all returns followed by a space and replace with single returns.
grep {findWhat:"\t\t+"} {changeTo:"\t"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all double tab characters and replace with single tab characters.
grep {findWhat:"\r\t"} {changeTo:"\r"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all returns followed by a tab character and replace with single returns.
grep {findWhat:"\t\r"} {changeTo:"\r"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all returns followed by a tab character and replace with single returns.
grep {findWhat:"\r\r+"} {changeTo:"\r"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all double returns and replace with single returns.
text {findWhat:" - "} {changeTo:" ^= "} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all space-dash-space and replace with an en dash.
text {findWhat:"--"} {changeTo:"^="} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find all dash-dash and replace with an en dash.



grep {findWhat:"([\l\u])\. ([\l\u])\."} {changeTo:"$1.~<$2."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u])\.([\l\u])\."} {changeTo:"$1.~<$2."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u][\l\u])\. ([\l\u][\l\u])\."} {changeTo:"$1$2.~<$3$4."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u][\l\u])\.([\l\u][\l\u])\."} {changeTo:"$1$2.~<$3$4."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u])\. ([\l\u][\l\u])\."} {changeTo:"$1.~<$2$3."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u])\.([\l\u][\l\u])\."} {changeTo:"$1.~<$2$3."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u][\l\u])\. ([\l\u])\."} {changeTo:"$1$2.~<$3."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"([\l\u][\l\u])\.([\l\u])\."} {changeTo:"$1$2.~<$3."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false}
grep {findWhat:"(\d),~= "} {changeTo:"$1,~=~<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Abs."} {changeTo:"$1.~<Abs."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Absatz"} {changeTo:"$1.~<Absatz"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Abschn."} {changeTo:"$1.~<Abschn."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Abschnitt"} {changeTo:"$1.~<Abschnitt"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Aufl."} {changeTo:"$1.~<Aufl."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Auflage"} {changeTo:"$1.~<Auflage"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Bd."} {changeTo:"$1.~<Bd."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Band"} {changeTo:"$1.~<Band"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) DM"} {changeTo:"$1~sDM"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Euro"} {changeTo:"$1~sEuro"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) CHF"} {changeTo:"$1~sCHF"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)f\."} {changeTo:"$1~|f."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)ff\."} {changeTo:"$1~|ff."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Fn"} {changeTo:"$1.~<Fn"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Fr."} {changeTo:"$1~<Fr."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Jg."} {changeTo:"$1.~<Jg."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Jh."} {changeTo:"$1.~<Jh."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Kap"} {changeTo:"$1.~<Kap"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)\. Lfg."} {changeTo:"$1.~<Lfg."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Mio"} {changeTo:"$1~<Mio"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Mrd"} {changeTo:"$1~<Mrd"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?%"} {changeTo:"$1|%"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?cm"} {changeTo:"$1~<cm"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?dB"} {changeTo:"$1~<dB"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?ha"} {changeTo:"$1~<ha"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?kcal"} {changeTo:"$1~<kcal"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?kg"} {changeTo:"$1~<kg"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?kJ"} {changeTo:"$1~<kJ"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?km"} {changeTo:"$1~<km"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?l"} {changeTo:"$1~<l"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?m"} {changeTo:"$1~<m"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?mg"} {changeTo:"$1~<mg"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?ml"} {changeTo:"$1~<ml"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?mm"} {changeTo:"$1~<mm"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?qm"} {changeTo:"$1~<qm"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) ?t"} {changeTo:"$1~<t"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)f"} {changeTo:"$1~|f"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)ff"} {changeTo:"$1~|ff."} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d)([\l\u])"} {changeTo:"$1~|$2"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Absatz (\d)"} {changeTo:"Absatz~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Absätze (\d)"} {changeTo:"Absätze~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Abschnitt (\d)"} {changeTo:"Abschnitt~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Artikel (\d)"} {changeTo:"Artikel~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Jahr"} {changeTo:"$1~sJahr"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Kapitel (\d)"} {changeTo:"Kapitel~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"(\d) Prozent"} {changeTo:"$1~sProzent"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Satz (\d)"} {changeTo:"Satz~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Sätze (\d)"} {changeTo:"Sätze~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Seite (\d)"} {changeTo:"Seite~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Seiten (\d)"} {changeTo:"Seiten~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
grep {findWhat:"Tabelle (\d)"} {changeTo:"Tabelle~s$1"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"..."} {changeTo:"^e"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} Find three full stops and replace with an mldr.
text {findWhat:"§ "} {changeTo:"§^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Abb. "} {changeTo:"Abb.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Abs. "} {changeTo:"Abs.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Abschn. "} {changeTo:"Abschn.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Anh. "} {changeTo:"Anh.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Anh. "} {changeTo:"Anh.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Anm. "} {changeTo:"Anm.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Art. "} {changeTo:"Art.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Artt. "} {changeTo:"Artt.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Bd. "} {changeTo:"Bd.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"DM "} {changeTo:"DM^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Fn "} {changeTo:"Fn^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"FN "} {changeTo:"FN^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Fn. "} {changeTo:"Fn.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Fr. "} {changeTo:"Fr.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"CHF "} {changeTo:"CHF^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"EUR "} {changeTo:"EUR^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Jg. "} {changeTo:"Jg.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Kap. "} {changeTo:"Kap.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Lfg. "} {changeTo:"Lfg.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Nr. "} {changeTo:"Nr.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Nrn. "} {changeTo:"Nrn.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rdn. "} {changeTo:"Rdn.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rdnr. "} {changeTo:"Rdnr.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rn. "} {changeTo:"Rn.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rn "} {changeTo:"Rn^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rz. "} {changeTo:"Rz.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Rz "} {changeTo:"Rz^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"S. "} {changeTo:"S.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
text {findWhat:"Tab. "} {changeTo:"Tab.^<"} {includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false, caseSensitive:true}
X

Script funktioniert nur teilweise

Martin Fischer
  
Beiträge gesamt: 12775

29. Nov 2007, 16:54
Beitrag # 2 von 5
Beitrag ID: #325018
Bewertung:
(2708 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo,

arbeitet Ihr mit der fehlerhaften Originalversion des Skripts von der Installations-DVD oder mit der korrigierten Version aus dem Netz (http://www.adobe.com/...s/indesign/scripting; unter dem Reiter "Scripting Ressources")?

Ah, ich lese gerade, daß die mitgelieferten GREP-Ausdrücke funktionieren.
Also dürfte es die aktuellere Skriptversion sein.
Nun, dann müßte man die GREP-Ausdrücke näher unter die Lupe nehmen.


als Antwort auf: [#325014]
(Dieser Beitrag wurde von Martin Fischer am 29. Nov 2007, 16:57 geändert)

Script funktioniert nur teilweise

JCM-Info
Beiträge gesamt: 11

29. Nov 2007, 16:56
Beitrag # 3 von 5
Beitrag ID: #325020
Bewertung:
(2702 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Martin,

vielen Dank für Deine Antwort.

Oh... das könnte schon das Problem sein, wir arbeiten mit der Version der DVD.

Dann werden wir direkt mal die richtige Version downloaden und schauen, ob es damit funktioniert.

Melde mich wieder, vielen Dank schon mal
Tanja


als Antwort auf: [#325018]

Script funktioniert nur teilweise

JCM-Info
Beiträge gesamt: 11

3. Dez 2007, 14:37
Beitrag # 4 von 5
Beitrag ID: #325414
Bewertung:
(2624 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Leider lag es nicht an einer evtl. falschen Version des Scripts.
Mit der von der Adobe Seite funktionieren unsere Tauschläufe leider auch nicht. Hat sonst jemand vielleicht noch eine Idee?

Vielen Dank & Gruß
Tanja


als Antwort auf: [#325020]

Script funktioniert nur teilweise

Martin Fischer
  
Beiträge gesamt: 12775

3. Dez 2007, 16:15
Beitrag # 5 von 5
Beitrag ID: #325429
Bewertung:
(2588 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Tanja,

ich habe nun an der ersten von Dir/Euch selbst definierten Zeile zwei Dinge entdeckt, die nicht in Ordnung sind:

1. vor den geschweiften Klammern '{' muß stets ein Tabulatorzeihen stehen; bei Dir steht da jeweils ein Leerzeichen; das steht in der FindChangeList.txt oben im Kommentar:
Code
//findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description 


2. ferner müssen die Schrägstriche (Backslashes) escaped werden (um als Schrägstrich erkannt und interpretiert zu werden, muß ein Schrägstrich davorgestellt werden).

Die erste Zeile sollte so funktionieren:
Code
grep	{findWhat:"([\\l\\u])\\. ([\\l\\u])\\."}	{changeTo:"$1.~<$2."}	{includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} 


Außerdem könntest Du den Punkt jeweils in die Gruppe mit reinnehmen und bräuchtest ihn im Ersetzenfeld nicht mehr definieren:

Code
grep	{findWhat:"([\\l\\u]\\.) ([\\l\\u]\\.)"}	{changeTo:"$1~<$2"}	{includeFootnotes:false, includeMasterPages:false, includeHiddenLayers:false, wholeWord:false} 



Etwas Ähnliches wie Du habe ich in meiner Definitionsliste drin.
Allerdings habe ich es nicht mit Gruppen versucht, sondern mit lookaround:
Code
grep	{findWhat:"((?<=\\b[\\l\\u])|(?<=\\b[\\l\\u]{2}))\\.[ ~s~S]?(?=[\\l\\u]{1, 2}\\.)"}	{changeTo:".~<"}	{includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}	z. B. -> z.B.; z. Fs. -> z.Fs. 

Bestimmt kann man das noch schöner machen.
Ich rechne mit einem Schweizer Schliff. ;-)


als Antwort auf: [#325414]
(Dieser Beitrag wurde von Martin Fischer am 3. Dez 2007, 16:32 geändert)
X