Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2024, 01:13 PM   #1
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Word wildcard problem

Maybe that's the wrong forum, but I didn't find a better suiting one!
My problem:
In many languages, especially french and italian, direct speech begins simply with a dash at the beginning of the paragraph, such as:
Code:
Text, text, text:
– Speech, speech...
At translating, I want to replace the characters indicating direct speech by chevrons (» as opening, « as ending characters). Of course, it is simple to replace the dashes at the beginning of a paragraph by the opening chevron. But, in the say french book, the end of the direct speech is frequently not indicated otherwise as by a new paragraph.
So, what I want to achieve is to find paragraphs beginning with "»", but not ending with "«" (some do, due to previous search and replace operations, so I have to mark this explicitely). To this end, I suppose I have to use wildcards.
I tried for example:
Code:
(»*[!«]^13){1}
and this one (others do likewise) finds the end of paragraphs not consisting in a closing chevron, but jumps over several paragraphs, until finding one that doesn't end with such a chevron.
So, how can I restrict the search to first paragraph that begins with an opening chevron, but ends without a closing one?
Is there a Word crack able to assist me?
Leonatus is offline   Reply With Quote
Old 03-17-2024, 09:12 AM   #2
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Well, the Word wildcards are a thing very special...
Trying further, I found this one that works:
Code:
Search for (with wildcards):
(»*[!«])(^13)
Replace with:
\1«\2
Maybe it`s useful to others!
Leonatus is offline   Reply With Quote
Advert
Old 04-19-2024, 10:27 AM   #3
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
For those to whom it may concern:

I found that my pattern above mentioned sometimes sets (for reasons I ignore) closing chevrons («) at the end of a paragraph that contains no opening chevron (») at all, and that are superfluous. To remove those, I invented this one:
Code:
Search for (with wildcards):
(^13[!»]@)«
Replace with:
\1
Good luck!
Leonatus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx rev pxy /w wildcard ssl cert - you are not authorized to view this site alexauran Server 1 09-24-2019 03:45 AM
Regex wildcard trouble David Kudler Sigil 6 03-18-2016 12:02 PM
Problem with word selection in C65 AfterGlow edmond Onyx Boox 0 10-23-2015 01:22 PM
Find and replace string with wildcard jhempel24 Sigil 15 11-12-2010 02:50 PM
Problem with Word 2003 TOC to PDF Pablo PDF 0 03-23-2009 10:58 AM


All times are GMT -4. The time now is 12:07 PM.


MobileRead.com is a privately owned, operated and funded community.