View Single Post
Old 06-15-2016, 11:41 AM   #187
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)
Only the text please

Hi

It happens we may have to intersperse within the text a lot of no-break spaces or narrow-no-break spaces (if they did not do it before with the text processor). In French, we have to do it according to specific typographic "rules" (before some punctuation signs, among them
Code:
? ! : ;
It's tricky to do it because many tags, including in the head, contain such signs and if you add some no-break space there, you trigger parsing mistakes.

So, the question is: how can I insert these signs only within the text and avoid spoiling any tag?

For example:

- Nothing here:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">
- Only for the red print here:

Code:
<p class="standard">« Cette lettre en est la preuve ! C’est à cause de cette Sylvia Sheilds. Elle lui a tourné la tête. Il est tout bizarre depuis qu’elle a quitté l’île. » Mon père avait donc lu la lettre ! Mon estomac se contracta.</p>

Last edited by roger64; 06-15-2016 at 12:32 PM.
roger64 is offline   Reply With Quote