In MS Office O365 MS Word) I could easily use a wildcard search/replace to select text between curly quotes and apply ‘emphasis’ (italics of some kind).
I’m new to Scrivener. I’ve been searching the net for a way to achieve the same. No luck after the last few days. I’ve looked into the compiler but can’t see a way to achieve my objective.
You could ask ChatGPT to construct a RegEx for you. But be prepared to go into “conversation” with it before it gives you what you really want.
Even teach it the advanced Word approach according to Word’s surrounding language as background information and then formulate your question.
You could ask ChatGPT to construct a RegEx for you. But be prepared to go into “conversation” with it before it gives you what you really want.
[To others - to avoid drift - this is only about Scrivener, not MS Word. Scrivener is very different in function and strategies for managing text aka Scrivenings]
Done that with three AI’s: Claude and Gemini (using equivalent of ‘gems’ in subscriptions) having uploaded all recent manuals on Scrivener. Both failed. Gemini failed even with deep research.
ChatGPT sent me crazy a couple weeks ago so ditched my subscription, and I’m not going back. Copilot AI (Microsoft) failed similarly.
To me ChatGPT and Copilot are the same—well, they respond too similarly (same layout, contextualising and word choice) to not be interwoven into one another.
If I recall the person whose website you mentioned for RegEx solutions is a Mac user and the RegEx code differs on Windows and Mac.
[““'] matches a single character in the list “”’
. matches any character (except for line terminators)
* matches the previous token between zero and unlimited times, as many times as possible
[”“'] matches a single character in the list ””’
Thanks. The code certainly selects relevant text between curly speech marks. However, there is no automated process in the method above to replace all such text (like when using a wildcard search in MS Word.) The manual process of italicising selected text in Scrivener is what I am trying to avoid. I have 100,000+ words among which I’d have to ‘rinse and repeat’ manually some 500+ times.
Even if an automated process is found eventually, preserving italicised text when compiling then becomes the next challenge.
My strategy for working on this so far is:
1 - Select all text in the editor between speech marks (curly double quotes) and italicise with a named character style that does emphasis.
2 - Instruct the compiler to ignore text marked with the said character style.
The above may take some work and not produce the result I need. If/when I fail, I’ll move to another strategy.
The only other software I know of that can find and replace formatting is InDesign. Maybe you can postpone this action until the production phase of your book?
To ensure the character style has effect in the compiler, make sure its is added to the Compile Styles in the Compile Format Designer’s Style pane, and is set to the correct – italic – formatting.