05-28-2014, 04:41 AM | #361 | ||
Junior Member
Posts: 3
Karma: 10
Join Date: May 2014
Device: galaxy tab3 7''
|
Quote:
However you are right, I do not lose more than 15 minutes per book. Quote:
You can add to this macro to highlight also the beginning of the next paragraph, so you can replace and merge the two paragraphs? After writing the last post, I made this regex: Search: (\w+\p{L}.\p{P}*\p{Pf}*[</span>]*[</i>]*)</p>\n*[ <p class="calibre1">]* Replace: \ 1 but your macro, being more generic, find more matches thanks! |
||
05-28-2014, 07:07 AM | #362 | ||
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
hou- se hou-<br/>se hou-</p> <p>se etc... oh well Quote:
Code:
(?<=\s)([^\s]+)</p>\s*<p[^>]*> Code:
\1 <--- single space this will also catch things like <p class='calibre'>, <p class="calibre calibre12">, etc |
||
05-28-2014, 08:44 AM | #363 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2014
Device: galaxy tab3 7''
|
Quote:
And it's not as horrible as what I wrote ^_^ Can you recommend any sites that explain regular expressions? there is so much material on the internet, but I want something that fully explain regex. Thank you again! |
|
05-28-2014, 02:33 PM | #364 | |
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:
|
|
05-28-2014, 05:13 PM | #365 | |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
|
|
06-04-2014, 04:53 AM | #366 |
I am what I am
Posts: 6,625
Karma: 62235665
Join Date: Sep 2011
Device: iPad3, Voyage
|
I'm sure this has been asked many times, but my search is not giving results to my query (my search terms are probably wrong). How do I find a paragraph without a full stop such as the below example? Thanks for any help!
Code:
very fortunate, he</span></p> |
06-04-2014, 05:15 AM | #367 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
[^.]+</p> Last edited by Doitsu; 06-04-2014 at 05:23 AM. |
|
06-04-2014, 05:55 AM | #368 |
I am what I am
Posts: 6,625
Karma: 62235665
Join Date: Sep 2011
Device: iPad3, Voyage
|
Thank you but it's finding all instances of </span></p> ? Is there any way of only finding those without a full stop?
Last edited by JoHunt; 06-04-2014 at 06:05 AM. |
06-04-2014, 06:07 AM | #369 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
[^.]+</span></p> This regex should find end of paragraph tags preceded by a </span> tag and one or more characters that are not a period. |
|
06-04-2014, 06:30 AM | #370 | |
I am what I am
Posts: 6,625
Karma: 62235665
Join Date: Sep 2011
Device: iPad3, Voyage
|
Quote:
Last edited by JoHunt; 06-04-2014 at 06:37 AM. |
|
06-04-2014, 06:52 AM | #371 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
what about
Code:
(?<=[a-zA-Z])(?:</[bispanemtrog]+>)*?</p> Last edited by mzmm; 06-04-2014 at 07:00 AM. |
06-04-2014, 07:06 AM | #372 |
I am what I am
Posts: 6,625
Karma: 62235665
Join Date: Sep 2011
Device: iPad3, Voyage
|
|
08-08-2014, 09:20 AM | #373 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I want to replace by lower case characters some words that have been written, following the older german grammar, beginning with upper case letters, even when they are in the middle of a sentence, such as "Du", "Dich", "Ihr", "Euch".
But put into lower case only, if they are not following period, exclamtion mark, question mark, opening quotation mark. I have to consider that, after period, exclamation mark, question mark, those words do not immediately follow, but only after a whitespace. And after opening quotation marks they follow immediately, but should only be set into uppercase, if the quotation mark itself does not follow comma or semicolon, such as ' ... he cried, "...'. It seems that I can only resolve those problems subsequently, but even this causes big problems searching a suiting Regex formula. Any help is highly appreciated! |
08-08-2014, 09:48 AM | #374 |
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)
|
Simply search for
Code:
(?<![.!?])(?<=[ ])([A-Z])(?=[a-z]+) Code:
\L\1 I am not exactly clear on how the quotations should work, so this will not handle those. Can you give me an example of two cases, one where it should be fixed, and one where it shouldn't? Last edited by eschwartz; 08-08-2014 at 12:37 PM. Reason: fixed some stuff. ALso we want to *lowercase* |
08-08-2014, 12:12 PM | #375 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
is that working for you in sigil? my PCRE editor doesn't match
i'd probably use something like find Code:
(?<![.!?])( [A-Z])(?=[a-z]) Code:
\U\1\E Last edited by mzmm; 08-08-2014 at 12:18 PM. |
|
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 |