<div dir="ltr">Well, there are spaces in the PDF generated by Scribus. If you do a copy/paste from a PDF viewer, you will get spaces. Also, in you open the .sla file in a text editor, you will see the spaces. My question is why there is no "regular" space (code 32 in decimal) in the fonts embedded in the PDF file. What's the rules used for spaces? <div><br></div><div>I use the "preflight" function available in Acrobat Professional (Create Inventory → Fonts) to see that.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 13, 2014 at 3:36 PM, Gregory Pittman <span dir="ltr"><<a href="mailto:gpittman@iglou.com" target="_blank">gpittman@iglou.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/13/2014 08:47 AM, Eric Dodémont wrote:<br>
> I am converting PDF files to fixed layout ePub files, which mean mainly<br>
> converting PDF to HTML.<br>
><br>
> I noticed something strange.<br>
><br>
><br>
> When converting PDF files produced by Scribus, the HTML displays very well,<br>
> but when I copy/paste a selected text, there is no “spaces” in the text!<br>
><br>
> E.g.:<br>
><br>
><br>
> - On the screen you see: “The red car was behind the house."<br>
><br>
> - The copy/paste gives: “Theredcarwasbehindthehouse.”<br>
><br>
> I found a PDF file produced by InDesign, and with that file the problem is<br>
> not there.<br>
><br>
> After analyzing with Acrobat the fonts embedded in the PDF files, I noticed:<br>
><br>
><br>
> - Indesign: fonts contain the <SPACE> (code 20 in hexa, 32 in decimal).<br>
><br>
> - Scribus: fonts does not contain the <SPACE> (code 20 in hexa, 32 in<br>
> decimal).<br>
><br>
> I am using PDFTron to convert PDF files to ePub files. When I use the<br>
> pdf2htmlEX tool (available for Linux and Windows), the problem is not there.<br>
><br>
> It seems that PDFTron will only insert a space in the text when the code 32<br>
> is in the text.<br>
><br>
> How comes there is no spaces with code 32 in the PDF produced by Scribus?<br>
><br>
> I know there is a lot of different spaces: U+0020 SPACE, U+00A0 NO-BREAK<br>
> SPACE, U+2000 EN QUAD 1 en (= 1/2 em), U+2001 EM QUAD 1 em, etc.<br>
><br>
<br>
It may be a bit more complex than you think.<br>
The first question is, where are you copying from? I presume you mean<br>
highlighting text, then doing Ctrl+C or some equivalent. You might be<br>
better off trying to use the PDF viewer to extract the text.<br>
<br>
Next, what encoding system are you using? Scribus uses UTF-8, but some<br>
other piece of software might use something else.<br>
<br>
I just tried this in Fedora, by opening a Scribus-generated PDF in Adobe<br>
Reader, highlighting text, copying then pasting to a text editor (in<br>
this case Emacs), and saw all the spaces as I'd expect.<br>
<br>
Greg<br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" target="_blank">http://forums.scribus.net</a></blockquote></div></div>