Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 02-15-2025, 06:11 AM   #1
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
Problem with  

I recently edited a text using the Calibre Editor 7.26, and I used   to generate thin non-breaking spaces, mostly to manage how punctuation behaves within a french text (i.e. thin space before ; : ! », etc.)
All went well in the editor, the displayed text on the right pane was OK.
BUT when I open the ePub file with the Calibre Viewer 7.26, my non-breaking spaces break ! How can I fix this, please ?
Mich06 is offline   Reply With Quote
Old 02-15-2025, 06:24 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,433
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Mich06 View Post
I recently edited a text using the Calibre Editor 7.26, and I used   to generate thin non-breaking spaces, mostly to manage how punctuation behaves within a french text (i.e. thin space before ; : ! », etc.)
All went well in the editor, the displayed text on the right pane was OK.
BUT when I open the ePub file with the Calibre Viewer 7.26, my non-breaking spaces break ! How can I fix this, please ?
Try a different font. maybe the font you've used has a problem with a thin non-breaking space.
JSWolf is offline   Reply With Quote
Old 02-15-2025, 06:30 AM   #3
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
I usually use Georgia ; so I tried Times New Roman, Garamond Pro, Calibri, even Futura. Same problem occurs...
Mich06 is offline   Reply With Quote
Old 02-15-2025, 06:39 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,986
Karma: 27109258
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
what does they "break" mean? And the viewer and editor both render using Qt WebEngine. Attach a sample ebook showing the issue as there could be anymore of problems causing it.
kovidgoyal is offline   Reply With Quote
Old 02-15-2025, 08:24 AM   #5
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
“break” means that there's a line break in the wrong place, just where I'd inserted &thinsp ;.
Apparently, you can only insert a URL here, not a file, and my file isn't on the net.
However, I've attached one of the xhtml files from the file, which shows the problem I encountered.

Quote:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">

<head>
<title>Intro</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="page_styles.css"/>
</head>

<body class="calibre">

<p class="para3"><i class="calibre4">Ce texte a été publié pour la première fois dans la </i>Philosophical Review<i class="calibre4">, vol. LXXIV, n°1, janvier 1965. Ses éditeurs l’ont présenté par la note suivante&thinsp;:</i></p>

<p class="para4">La conférence que l’on va lire, et qui jusqu’à présent n’a pas fait l’objet d’une publication, a été préparée par Wittgenstein pour être prononcée à Cambridge à une date comprise entre septembre 1929 et décembre 1930. Elle a probablement été lue devant la société dite «&thinsp;<i class="calibre4">The Heretics</i>&thinsp;»&thinsp;; Wittgenstein s’est en effet adressé à cette société pendant la période mentionnée ci-dessus. Le manuscrit ne porte pas de titre. Autant que l’on sache, c’est là la seule conférence de caractère public qui ait jamais été écrite ou prononcée par Wittgenstein.</p>

<p class="para4">[…]</p>

<p class="para4">Nous sommes redevables à M. Rush Rhees des informations ci-dessus et de sa participation à la préparation de ces textes. C’est à lui, ainsi qu’aux autres exécuteurs testamentaires de l’œuvre de Wittgenstein, Miss Elizabeth Anscombe et le Professeur G. H. von Wright, que nous devons d’avoir été autorisés à publier cette conférence.</p>

<p class="calibre5" style="text-align: right;">Les Éditeurs.</p>

</body>

</html>
Mich06 is offline   Reply With Quote
Old 02-15-2025, 08:29 AM   #6
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
The problem can be seen, for instance, in the sentence:

**************
Elle a probablement été lue devant la société dite «&thinsp;<i class="calibre4">The Heretics</i>&thinsp;»&thinsp;;

***************
In the editor, there is no line break in the middle of :
«&thinsp;<i class=“calibre4”>The Heretics</i>&thinsp;»&thinsp;;

But there is in the viewer.
Mich06 is offline   Reply With Quote
Old 02-15-2025, 03:53 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,496
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Mich06 View Post
. . .
Apparently, you can only insert a URL here, not a file, and my file isn't on the net.
Click the "Go Advanced" button, then click the paper clip in the toolbar top row:

Click image for larger version

Name:	Screenshot 2025-02-16 074855.jpg
Views:	102
Size:	152.1 KB
ID:	213702

If the file type you want to attach isn't in the list, put the file in a zip archive.

BR
BetterRed is offline   Reply With Quote
Old 02-15-2025, 03:58 PM   #8
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
Thanks !
Attached Files
File Type: epub Ludwig Wittgenstein - Conférence sur l'éthique.epub (565.8 KB, 131 views)
Mich06 is offline   Reply With Quote
Old 02-15-2025, 07:37 PM   #9
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 805
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
I thought &thinsp; ( &amp;#8201; ) allowed breaks but maybe I'm wrong. Have you tried a narrow non-breaking space ( &amp;#8239; )?
icallaci is offline   Reply With Quote
Old 02-15-2025, 08:26 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 43,418
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Beaten to the answer by icallaci.

From what I remember... stopped to check Wikipedia and it does say the narrow non-breaking space is the correct choice.
DNSB is offline   Reply With Quote
Old 02-16-2025, 05:25 AM   #11
Mich06
Enthusiast
Mich06 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jan 2020
Device: Kindle Paperwhite 32 GB
It worked.

What I did in the editor was :
- insert character (from the edit menu)
- Go to general punctuation
- Select [nnb sp] (NARROW NO-BREAK SPACE (U+202F) )
- Search and replace &thinsp; with this character (appears as a grey character)

So I was wrong from the beginning thinking &thinsp; was a no-break thing ... I thought it was the "thin" version of &nbsp; ... my bad !

Thanks for your help !
Mich06 is offline   Reply With Quote
Old 02-16-2025, 09:30 AM   #12
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 805
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Oh, good. Glad it worked.
icallaci is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Problem reading converted EPUB & PDB on Barnes & Noble eReader webfolk Calibre 3 01-09-2012 10:08 PM
(Problem Resolved) AARGGGGHHHHH!!! Sony #&%@&^#(*%!*#& CS DrMoze Sony Reader 11 09-06-2007 11:17 AM


All times are GMT -4. The time now is 08:29 PM.


MobileRead.com is a privately owned, operated and funded community.