como visto abaixo, cada linha em todas as paráfrases está inacabada. As palavras no início de cada linha do parágrafo não são uma continuação da linha anterior. Estou interessado em conectar todas as linhas da paráfrase sem nenhuma quebra de palavra.
When the water rises up to F, the piece at A will be visible; when it
reaches G, both A and B will be visible; and when it comes up to H,
all three pieces will be visible.
_Artificial Earthquake and Volcano._
Grind an equal quantity of fresh iron filings with pure sulphur, till
the whole be reduced to a fine powder. Be careful not to let any wet
come near it. Then bury about thirty pounds of it a foot deep in the
earth, and in about six or eight hours the ground will heave and
swell, and shortly after send forth smoke and flames like a burning
mountain. If the earth is raised in a conical shape, it will be no bad
miniature resemblance of one of the burning mountains.
_Artificial Illuminations._
A very pleasing exhibition may be made with very little trouble or
expense, in the following manner: Provide a box, which you fit up with
architectural designs cut out on pasteboard; prick small holes in
those parts of the building where you wish the illuminations to
appear, observing, that in proportion to the perspective, the holes
are to be made smaller; and on the near objects the holes are to be
made larger. Behind these designs thus perforated, you fix a lamp or
candle, but in such a manner that the reflection of the light shall
only shine through the holes; then placing a light of just sufficient
brilliance to show the design of the buildings before it, and making a
hole for the sight at the front end of the box, you will have a very
tolerable representation of illuminated buildings.
A SAÍDA
When the water rises up to F, the piece at A will be visible; when it reaches G, both A and B will be visible; and when it comes up to H, all three pieces will be visible.
_Artificial Earthquake and Volcano._
Grind an equal quantity of fresh iron filings with pure sulphur, till the whole be reduced to a fine powder. Be careful not to let any wet come near it. Then bury about thirty pounds of it a foot deep in the earth, and in about six or eight hours the ground will heave and swell, and shortly after send forth smoke and flames like a burning mountain. If the earth is raised in a conical shape, it will be no bad miniature resemblance of one of the burning mountains.
_Artificial Illuminations._
A very pleasing exhibition may be made with very little trouble or expense, in the following manner: Provide a box, which you fit up with architectural designs cut out on pasteboard; prick small holes in those parts of the building where you wish the illuminations to appear, observing, that in proportion to the perspective, the holes are to be made smaller; and on the near objects the holes are to be made larger. Behind these designs thus perforated, you fix a lamp or candle, but in such a manner that the reflection of the light shall only shine through the holes; then placing a light of just sufficient brilliance to show the design of the buildings before it, and making a hole for the sight at the front end of the box, you will have a very tolerable representation of illuminated buildings.
Meu regex não funciona muito bem:
ENCONTRAR:^(.*?)$(\K.*)\r
SUBSTITUIR POR:\2
OU (um melhor)
ENCONTRAR:^(.*?)$(\R)
SUBSTITUIR POR:\1
Usando o Notepad++, pode ser que funcione com o SublimeText.
\R+_.+_\R+(*SKIP)(*FAIL)|\R
. matches newline
Explicação:
Captura de tela (antes):
Captura de tela (depois):
Uma fórmula regex muito simples e útil:
ENCONTRAR:
([^\r\n])\R([^\r\n])
SUBSTITUIR POR:
\1 \2
\R(?=.)
(leave empty)
. matches newline