Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] copy paste from/to textedit or word

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] copy paste from/to textedit or word


Chronological Thread 
  • From: Basile Audoly <address@hidden>
  • To: Philippe Joyez <address@hidden>, VD Ouvaton <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: [TeXmacs] copy paste from/to textedit or word
  • Date: Fri, 16 Jun 2017 08:50:07 +0200

I used the ClipboardViewer app to inspect the contents of the clipboard on MacOS
   https://developer.apple.com/library/content/samplecode/ClipboardViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008825

Upon copying the word 'étoile' from TeXmacs, the clipboard contains
  public.utf8-plain-text 
         -> 00000000:  c3 83 c2 a9 74 6f 69 6c 65     √.¬©toile 
  public.utf16-plain-text 
        -> 00000000:  c3 00 a9 00 74 00 6f 00 69 00  √.©.t.o.i.
            00000010:  6c 00 65 00                                l.e.      
  (as well as other data types not shown)

According to the utf8 encoding,
c3 83 = LATIN CAPITAL LETTER A WITH TILDE
c2 a9 = COPYRIGHT SIGN
are incorrect.

By contrast, upon copying the word 'étoile' from Textedit.app, the clipboard contains
  public.utf8-plain-text
        -> 00000000:  c3 a9 74 6f 69 6c 65           √©toile 
where
c3 a9 = LATIN SMALL LETTER E WITH ACUTE
is correct.

As far as I understand, the utf-8 representation produced by TeXmacs is incorrect.
I am not sure whether the utf16 representation is correct (and I am not sure it is used when pasting anyway).

Basile.

Le 15 juin 2017 à 21:01, Philippe Joyez <address@hidden> a écrit :

1) when i copy paste the word "étoile" from texmacs to textedit or word, i
get étoile

Obviously Texmacs is placing utf-8 encoded text on the cilpboard and textedit/
word misinterpret it as another encoding (which is strange because I though
MacOS had standardized to utf-8 long ago). Does it happen if you paste in any
other text editors as well?

but 2)
- when i copy paste the word "étoile" from word for mac version 2011 (14.5.2)
to texmacs, >texmacs (1.99.4) keeps the turning colored circle of mac os X
during a long time and displays ><error|bad image|null box>

have you tried all the "paste from ..." possibilities?

Sorry I can't help furher: I Do not have access to a Mac.

Philippe




Archive powered by MHonArc 2.6.19.

Top of Page