View Single Post
Old 06-26-2014, 01:31 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
About parentheses

Hi

Most of the time - because there are some exceptions -, there should be a matching pair, with an opening and a closing one. They should be "matched", which means also we should see two straight ones, sometimes two italic ones, but we should not have a straight one on one side and an italic one on the other (or inversely ).

As I do not know how to solve this mistake with a word processor, it lands within the EPUB. It could be part of a larger problem because it interests potentially not only round brackets (parentheses) but maybe square, curly and angle brackets too.

Here is a text excerpt with some mistakes of this kind I'd like to know how to detect and/or correct. The culprit can be found three times after the word "Soir".

Code:
Charles Baudinat (de <i>France-Soir)</i>, Vladimir Bentz ŕ Berlin, Daničle Berthemet, Sabine Cayrol, Henriette Chandet (du fin fond de <i>Paris-Soir),</i> Jacques Chapus (<i>France Soir), </i>Jacques-Olivier Chatard ŕ Londres,
The correct form should be:

Code:
 (de <i>France-Soir</i>),
Nota: Instead of<i> and </i> like here, we find often a span:
<span class="italic"> and </span>


Questions
How to detect an orphaned parenthesis?
How to detect an unmatched pair? (I mean both straight and italic)

Last edited by roger64; 06-26-2014 at 02:27 AM.
roger64 is offline   Reply With Quote