08-10-2014, 10:04 AM | #391 | ||
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
Quote:
no, it's in the first capturing group. uppercase space == lowercase space, but obviously less readable :) ehm, yes, i did, didn't i. i'll also blame your dental surgery, if you don't mind :) |
||
08-10-2014, 10:09 AM | #392 | |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
it's taken me forever to be able to remember these. i don't even have a mnemonic for them because i can't find one that makes any sense. |
|
08-10-2014, 10:21 AM | #393 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
08-10-2014, 10:25 AM | #394 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Given a definite exclusion list, you can definitely do it -- but it won't be very readable. |
|
08-11-2014, 02:51 AM | #395 | |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
And I suppose it's sort of an ironic comment on the German grammar to write everything lowercase in English, isn't it? Ah, and your example shows a guillemet, showing its peak to the left; that's indeed the French way to use them at the beginning of a direct speech (like a wrap). Here, it's more common to use (and I do it) a right-showing guillemet for the opening of a direct speech. So I have to replace it, I suppose? Last edited by Leonatus; 08-11-2014 at 03:14 AM. |
|
08-11-2014, 03:51 AM | #396 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Hm, the replace entry "\1\L\2" (without quotes) shows: "Invalid option".
I used the Search and Replace function in Word, checking the Wildcard-option. Is there something wrong? Also, if I only enter the "search" option, it shows "invalid sample comparison" (I translated the german expression and don't know if it's correct in Engish). Seems that using Regex in Word is very limited. Last edited by Leonatus; 08-11-2014 at 03:57 AM. |
08-11-2014, 06:11 AM | #397 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The \L \U \E replacement variables aren't going to work in Word. It was probably assumed (given the subforum this is taking place in) that you were using Sigil's regex S&R feature.
|
08-11-2014, 09:04 AM | #398 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
If you're going to be using regex you need to be using something with a proper regex engine, not word processors. |
|
08-11-2014, 09:09 AM | #399 | ||
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
Quote:
yep. |
||
08-11-2014, 10:22 AM | #400 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@mzmm,
@DiapDealer, @eschwartz: Yes, yes, yes, you are completely right, and I even assumed the result beiing like this. I've got two reasons why I tried it in spite of it: 1. Provided I receive the texts I prepare not as html or even epub, I like to format them in Word or OpenOffice, simply because the possibilities of spellchecking there are, for my taste, generally more comfortable than in Sigil or Calibre. And, having them thus formatted, I convert them to epubs by using Toxaris', resp. Luke's tools, doing the fine-tuning with Sigil or Calibre. 2. (Ahem) At the place I have been this morning, I have no chance to use other programs than word for more refined Regex testing (I suppose you guess why). So I just ... tried it. And once more, many, many thanks for your advice! Now that I'm at home and with Sigil available, your trick works like a charm! I think this will save me hours and hours of time in the future, for I'm trying to become specialized on German literature of the 19th century. |
08-11-2014, 11:04 AM | #401 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Just to report:
Code:
(?<![.!?])(\s»?)(Du|Dich|Dir|Er|Ihn|Ihm|Ihr|Es|Wir|Uns|Euch|Jeder|Jede|Alle|Alles)\b blah.« Er ging ... So complete Code:
(?<![.!?«])(\s»?)(Du|Dich|Dir|Er|Ihn|Ihm|Ihr|Es|Wir|Uns|Euch|Jeder|Jede|Alle|Alles)\b
no, doesn't work, because there is a whitespace following the closing guillemet. Last edited by Leonatus; 08-11-2014 at 11:14 AM. Reason: correction |
08-30-2014, 01:48 PM | #402 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
I am reading a book that for some reason has separated (for example) Mr. Smith into two different paragraphs. I want to find these instances and correct them.
Example: ... Mr.</p> <p class="indent">Smith Also, Mrs. Ms. Miss. and Dr. What regex would find all examples? Sorry if this has already been answered. |
08-30-2014, 01:57 PM | #403 | |
Connoisseur
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Quote:
|
|
08-30-2014, 02:15 PM | #404 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
|
08-30-2014, 02:20 PM | #405 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
You need to be in Regex mode in the search box for this to work.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Examples of Subgroups | emonti8384 | Lounge | 32 | 02-26-2011 06:00 PM |
Accessories Pen examples | Gunnerp245 | enTourage Archive | 15 | 02-21-2011 03:23 PM |
Stylesheet examples? | Skitzman69 | Sigil | 15 | 09-24-2010 08:24 PM |
Examples | kafkaesque1978 | iRiver Story | 1 | 07-26-2010 03:49 PM |
Looking for examples of typos in eBooks | Tonycole | General Discussions | 1 | 05-05-2010 04:23 AM |