View Single Post
Old 05-18-2016, 01:10 PM   #7
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by jackie_w View Post
Something to be careful of with your regex is that you might end up replacing consecutive non-breaking-spaces with a plain space. That might be important if nbsps have been used to create vertical whitespace scenebreaks. E.g.
Before: <p>*nbsp**nbsp*</p>
After: <p>*plainspace*</p>

The 'Before' paragraph will look like a blank line. The 'After' will be completely invisible.
Consecutive non-breaking-spaces do not have a syntax?

The meaning of *nbsp* (non blanc spaces) is not clear to me. A *nbsp* must be syntactically somehow recognizable and different from the *plainspace* - or?

Quote:
Originally Posted by BetterRed View Post
I think the pink blobs in the third shot probably indicate the presence of a 'special' space character. In codeview window, position the cursor immediately after a blob and the character details will be displayed at the right end of the status line.
Click image for larger version

Name:	Differences between books (excerpt).png
Views:	282
Size:	271.8 KB
ID:	148745
Differences between books (excerpt) (Image with pink blobs)
Never mind which white or blanc spaces or plainspaces, the regular ones, the ones in some words or the double ones between the words: all called SPACE (in status line).



EDIT Soon my head is also an empty space - yet it hums.

There are NO-BREAK SPACES, colored yellow.

Click image for larger version

Name:	Code view.png
Views:	268
Size:	6.6 KB
ID:	148750
Code View (Yellow space)

Click image for larger version

Name:	NO-BREAK SPACE.png
Views:	291
Size:	75.6 KB
ID:	148751
NO-BREAK SPACE (Cursor behind yellow space)



Quote:
What does the fourth shot look like in Preview - it appears to have a space between almost every character - but if that's what you want I guess it's OK.
No! What I want is: One (normal) white space between words, none in the words.

Click image for larger version

Name:	without correction of double white spaces.png
Views:	267
Size:	188.9 KB
ID:	148742
without correction of double white spaces

Click image for larger version

Name:	with correction of double white spaces.png
Views:	296
Size:	188.4 KB
ID:	148743
with correction of double white spaces Looks exactly the same.

Quote:
To address the issue jackie-w raises you could try replacing the nbsp at line beginnings with a marker, do the global replace, and then replace the markers with nbsp.
??? Further explanations desired.

Last edited by chaot; 05-18-2016 at 02:42 PM. Reason: add EDIT
chaot is offline   Reply With Quote