[xep-support] Re: Encoding spaces at line ends and between words
Dave Pawson
dave.pawson at gmail.com
Tue May 10 06:05:17 PDT 2016
On 10 May 2016 at 10:24, Armin Günther <guenther at zpid.de> wrote:
> Dave, thank you for this suggestion!
>
> I had a look at the markup hypothes.is uses to display the copied text and
> found this (using Firefox):
>
> ===
> <blockquote class="annotation-quote ng-binding ng-scope" ng-repeat="selector
> in target.selector | filter : {'type': 'TextQuoteSelector'} track by $index"
> ng-bind-html="selector.exact">Gender, in contrast, is a social,not a
> biological characteristic. Genderconsists of what-ever behaviors and
> attitudes a group considers proper for its males and females. Conse-quently,
> gender varies from one society to another. Whereas sexrefers to male or
> female,genderrefers to masculinity or femininity. In short, you inherit your
> sex, but you learnyour gender as you are socialized into the behaviors and
> attitudes your culture asserts areappropriate for your sex.</blockquote>
> ===
> Source:
> https://via.hypothes.is/http://www.renderx.com/files/demos/examples/CH11.pdf
>
> So, obviously the text style is not copied at all and spaces are lost e.g.
> "female,genderrefers".
Apologies. I referred to the source XML, not the output (which could have
various sources of whitespace error?). Are there spaces after the markup
and before the text in the source?
regards
>
> However, I am not concerned about the problems of PDF viewers. My initial
> concern was (when we initially were pointed to this problem by some useres),
> that our PDFs (journal articles) are somewhat corrupt or could be improved
> with regard to the encoding of spaces and line breaks.
>
> Thanks again,
> Armin
>
>
>
> Am 09.05.2016 um 14:51 schrieb Dave Pawson:
>>
>> Or the markup?
>> Is there space between the closing (e.g. italic) markup and the text
>> of the next word?
>> ...</italic>Word will show no space, i.e. respecting your wishes?
>>
>> HTH
>>
>> On 2 May 2016 at 13:14, Armin Günther <guenther at zpid.de> wrote:
>>>
>>> As an addition to my previous post: Perhaps this mostly is not a XEP/PDF
>>> problem but a problem of the respective PDF-viewer?
>>>
>>> - Armin
>>>
>>>
>>>> Hi all,
>>>>
>>>> Is there a way to control how spaces at line ends and between words with
>>>> different styles are encoded into PDF? There seems to be no space
>>>> encoded at
>>>> line ends and between words with different styles (e.g.
>>>> bold/italics/normal). When we use PDF annotation tools on our PDFs
>>>> generated
>>>> by XEP (or simply want to copy text from PDFs generated by XEP)
>>>> words/lines
>>>> are concatenated as in the following example taken from a RenderX demo
>>>> document (http://www.renderx.com/files/demos/examples/CH11.pdf):
>>>>
>>>> Gender, in contrast, is a *social,not* a biological characteristic.
>>>> *Genderconsists* of *what-ever* behaviors and attitudes a group
>>>> considers
>>>> proper for its males and females. *Conse-quently*, gender varies from
>>>> one
>>>> society to another. Whereas *sexrefers* to male or *female,genderrefers*
>>>> to
>>>> masculinity or femininity. In short, you inherit your sex, but you
>>>> *learnyour* gender as you are socialized into the behaviors and
>>>> attitudes
>>>> your culture asserts *areappropriate* for your sex.
>>>> *Text copied from http://www.renderx.com/files/demos/examples/CH11.pdf
>>>> with *missing spaces*
>>>>
>>>> Is there a way to have real spaces encoded and not just positioning of
>>>> text in PDFs here? The result should look like this text:
>>>>
>>>> Gender, in contrast, is a *social, not* a biological characteristic.
>>>> *Gender consists* of *what- ever* behaviors and attitudes a group
>>>> considers
>>>> proper for its males and females. *Conse- quently*, gender varies from
>>>> one
>>>> society to another. Whereas *sex refers* to male or *female, gender
>>>> refers*
>>>> to masculinity or femininity. In short, you inherit your sex, but you
>>>> *learn
>>>> your* gender as you are socialized into the behaviors and attitudes your
>>>> culture asserts *are appropriate* for your sex.
>>>>
>>>> Thanks!
>>>> Armin
>>>>
>>>>
>>>
>>> _______________________________________________
>>> (*) To unsubscribe, please visit
>>> http://lists.renderx.com/mailman/options/xep-support
>>> (*) By using the Service, you expressly agree to these Terms of Service
>>> http://w
>>> ww.renderx.com/terms-of-service.html
>>
>>
>>
>
>
> --
> ZPID - Leibniz-Zentrum für Psychologische Information und Dokumentation
> ZPID - Leibniz-Institute for Psychology Information
>
> Prof. Dr. Armin Günther
> R & D
> guenther at zpid.de
> http://www.zpid.de/
> Fon: +49(0)651-201-2055
> Fax: +49(0)651-201-2604
>
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service
> http://w
> ww.renderx.com/terms-of-service.html
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
More information about the Xep-support
mailing list