User Tools

Site Tools


doc:en:copy_paste

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:en:copy_paste [2012/04/10 10:08]
rosmord [Principles and problems]
doc:en:copy_paste [2022/01/12 06:38] (current)
dmorandi [NeoOffice (Openoffice) and RTF text] typo
Line 4: Line 4:
   * Copy text and signs to a word processor (it works with both openoffice and Word)   * Copy text and signs to a word processor (it works with both openoffice and Word)
  
-====== ​Graphical copy and paste : configuration ======+====== ​Copy and paste : configuration ======
  
  
Line 14: Line 14:
 A cut and paste involves two softwares : JSesh and your word processor (Word, Openoffice, etc.)  A cut and paste involves two softwares : JSesh and your word processor (Word, Openoffice, etc.) 
 Now, JSesh will propose a number of different *formats* to your word processor, letting it pick the one it likes the most. To control what will be proposed by JSesh, you can use the Format Choice dialog (in the preferences). Now, JSesh will propose a number of different *formats* to your word processor, letting it pick the one it likes the most. To control what will be proposed by JSesh, you can use the Format Choice dialog (in the preferences).
 +
 +I do most of my testing with **open office** and **libre office**. They are not perfect, but they tend to process pictures and unicode correctly, so I strongly encourage their use. Their files tend to be very portable from one computer to the other. No problem of different versions of the word processor there.
  
 {{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​formatChoice.img_assist_custom.png |Format choice dialog}} {{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​formatChoice.img_assist_custom.png |Format choice dialog}}
  
  
-  * RTF : probably the most versatile choice for now. Works everywhere and give reasonable results, especially for hieroglyphs mixed with alphabetic text. +  * RTF : probably the most versatile choice for now. Works (almost) ​everywhere and give reasonable results, especially for hieroglyphs mixed with alphabetic text. Used to be problematic with some versions of Word on Mac, but has recently (2016) improved
-  * PDF : currently the most acurate ​choice. As far as I know, only Mac OS X supports PDF cut and paste, and few softwares understand it. For instance, Word 2004 doesn'​t. Word 2008 does, however. Textedit has the bad idea of accepting the PDF cut and paste, but transforming the result into a bitmap.+  * PDF : currently the most accurate ​choice. As far as I know, only Mac OS X supports PDF cut and paste, and few softwares understand it. For instance, Word 2004 doesn'​t. Word 2008 does, however. Textedit has the bad idea of accepting the PDF cut and paste, but transforming the result into a bitmap.
   * bitmap : gives a (currently) low resolution bitmap, suitable for web pages for instance.   * bitmap : gives a (currently) low resolution bitmap, suitable for web pages for instance.
   * plain text : will copy the //Manuel de Codage// encoding to the clipboard.   * plain text : will copy the //Manuel de Codage// encoding to the clipboard.
  
-For information specific to **your** word processor, see the chapter on [[word_processor_issues|word ​processor ​issues]] +For information specific to **your** word processor, see the chapter on [[word_processor_issues|word ​processors ​issues]]
 ===== Fine settings ===== ===== Fine settings =====
  
Line 35: Line 36:
 "​Cadrat height"​ changes the size of the pasted hieroglyphic text. "​Export mode" allows you to chose how hieroglyphic text will be pasted in RTF exports. There are three options: "​Cadrat height"​ changes the size of the pasted hieroglyphic text. "​Export mode" allows you to chose how hieroglyphic text will be pasted in RTF exports. There are three options:
  
-  * **as one large picture** The whole selected text will be pasted in your word processor as a single picture. This is fine for text in columns, for instance, or if you want to keep the graphical layout. It also seems that most word processor ​prefer to handle large pictures than lots of small ones.+  * **as one large picture** The whole selected text will be pasted in your word processor as a single picture. This is fine for text in columns, for instance, or if you want to keep the graphical layout. It also seems that most word processors ​prefer to handle large pictures than lots of small ones.
  
   * **grouped cadrats** Adjacent hieroglyphic cadrats will be grouped in one picture. The resulting text will alternate normal text and large pictures.   * **grouped cadrats** Adjacent hieroglyphic cadrats will be grouped in one picture. The resulting text will alternate normal text and large pictures.
Line 46: Line 47:
 Due to technical issues, we have put a limit on cut and paste. It's not possible to paste very long texts in a word processor (you can "​export as RTF instead"​). We will try to improve it, but we think it's a minor nuisance, as one typically paste small parts of hieroglyphic texts rather than whole large document (the limit is currently 1000 cadrats). Due to technical issues, we have put a limit on cut and paste. It's not possible to paste very long texts in a word processor (you can "​export as RTF instead"​). We will try to improve it, but we think it's a minor nuisance, as one typically paste small parts of hieroglyphic texts rather than whole large document (the limit is currently 1000 cadrats).
  
-Don't hesitate to write to the author ​at <​rosmord@iut.univ-paris8.fr> ​about this (or other problems with JSesh).+Don't hesitate to write to the author ​({{:​doc:​en:​auteurm.png?​direct|}}) ​about this (or other problems with JSesh).
  
  
Line 54: Line 55:
 Normally, in JSesh, you chose the format you want for copy/paste in the preferences menu. But in some cases, you might want to copy your text in a specific format which is not the one you chose. Instead of going back to the preferences,​ you can use the "Copy As" menu. It allows you to copy the selected text in PDF, RTF or Bitmap. Normally, in JSesh, you chose the format you want for copy/paste in the preferences menu. But in some cases, you might want to copy your text in a specific format which is not the one you chose. Instead of going back to the preferences,​ you can use the "Copy As" menu. It allows you to copy the selected text in PDF, RTF or Bitmap.
  
-====== Possibility to paste hieroglyphic back text //to// JSesh ======+====== Possibility to paste hieroglyphic back text to JSesh ======
  
  
Line 69: Line 70:
  
   * the picture format must support comments, and I need to write the corresponding code. This is currently done only for EMF and PDF.   * the picture format must support comments, and I need to write the corresponding code. This is currently done only for EMF and PDF.
-  * the word processor must accept the pasted picture "as is", and not modify it. Modifications usually suppress the comment. For instance, on a Mac, you can paste a PDF picture in MS/Word 2008. But Word  +  * the word processor must accept the pasted picture "as is", and not modify it. Modifications usually suppress the comment. For instance, on a Mac, you can paste a PDF picture in MS/Word 2008. But Word will (I guess) transform the picture into its own format, and lose the comment in the process.
-will (I guess) transform the picture into its own format, and lose the comment in the process.+
  
 All those explanations to tell you that this system won't function with all word processors... and especially not with MS/Word (at least not with Word 2008 on a mac). I'm sorry for that. All those explanations to tell you that this system won't function with all word processors... and especially not with MS/Word (at least not with Word 2008 on a mac). I'm sorry for that.
Line 78: Line 78:
 ===== Mellel/​Nissus writer and PDF ===== ===== Mellel/​Nissus writer and PDF =====
  
-If you use Mellel or Nissus writerand if you configure your cut and paste option to use the PDF format ), you will be able to paste back your hieroglyphs into JSesh.+If you use Mellel or Nissus writer ​(and if you configure your cut and paste option to use the PDF format), you will be able to paste back your hieroglyphs into JSesh.
  
 Simply select the hieroglyphs in your text processor (e.g. Mellel) and copy them... Simply select the hieroglyphs in your text processor (e.g. Mellel) and copy them...
-[img_assist|nid=1370|title=Copying from Mellel|desc=|link=none|align=center|width=518|height=300]+ 
 +{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​mellel_copy.png ​|Copying from Mellel}} 
  
 Then go to JSesh, and select File/​Import/​Import from Pasted PDF. Then go to JSesh, and select File/​Import/​Import from Pasted PDF.
  
-[img_assist|nid=1371|title=Importing PDF|desc=|link=none|align=center|width=472|height=204]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​jsesh_pdf_import.png ​|Importing PDF}} 
  
 The result will replace your current JSesh document: The result will replace your current JSesh document:
-[img_assist|nid=1372|title=PDF import result|desc=|link=none|align=center|width=304|height=167]+ 
 +{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​jsesh_pdf_import_result.png ​|PDF import result}}
  
 ===== NeoOffice (Openoffice) and RTF text ===== ===== NeoOffice (Openoffice) and RTF text =====
Line 95: Line 99:
 This chapter describes manipulations made on a macintosh using Neooffice as word processor. It works also with Openoffice on Windows and Linux (but it seems to fail with Openoffice 3.1.1 on Mac). This chapter describes manipulations made on a macintosh using Neooffice as word processor. It works also with Openoffice on Windows and Linux (but it seems to fail with Openoffice 3.1.1 on Mac).
  
-If you configure your cut and paste option to use the RTF format **and** if you chose **EMF** as the picture format (see [the cut and paste documentation](/​node/​921)), you will be able to paste back your hieroglyphs into JSesh.+If you configure your cut and paste option to use the RTF format **and** if you chose **EMF** as the picture format (see above), you will be able to paste back your hieroglyphs into JSesh.
  
 First, you must select "​EMF"​ as the copy format to use. First, you must select "​EMF"​ as the copy format to use.
  
-[img_assist|nid=866|title=Copy preferences|desc=|link=none|align=center|width=723|height=452]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​cut_and_paste_preferences.png ​|Copy preferences}}
  
 Text pasted in EMF in Neooffice ​ can then be pasted back in JSesh: Text pasted in EMF in Neooffice ​ can then be pasted back in JSesh:
  
-[img_assist|nid=1373|title=Copying RTF|desc=|link=none|align=center|width=540|height=153]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​copy_rtf.png ​|Copying RTF}}
  
-[img_assist|nid=1374|title=Importing RTF|desc=|link=none|align=center|width=451|height=168]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​import_rtf.png ​|Importing RTF}}
  
-[img_assist|nid=1375|title=Imported RTF text|desc=|link=none|align=center|width=452|height=119]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​import_rtf_result.png ​|Imported RTF text}}
  
 Now, there is a little problem. We want Neooffice to send RTF text (with the picture embedded in it). This won't happen if you directly select the picture: Now, there is a little problem. We want Neooffice to send RTF text (with the picture embedded in it). This won't happen if you directly select the picture:
-[img_assist|nid=1376|title=Bad selection in Neooffice|desc=|link=none|align=center|width=344|height=83]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​bad_copy_attempt.png ​|Bad selection in Neooffice}}
  
 Note that in the "​good"​ selection, the picture is outlined in black. Note that in the "​good"​ selection, the picture is outlined in black.
  
 The direct selection of a picture will result in an (innocuitous) error message: The direct selection of a picture will result in an (innocuitous) error message:
-[img_assist|nid=1377|title=Bad selection error message|desc=|link=none|align=center|width=340|height=163]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​bad_copy_attempt_result.png ​|Bad selection error message}}
  
 Now, the correct way to select the picture is to click in front of it in the text and to drag with the mouse. ​ Now, the correct way to select the picture is to click in front of it in the text and to drag with the mouse. ​
Line 121: Line 125:
  
 Note that you can select more than one picture: Note that you can select more than one picture:
-[img_assist|nid=1378|title=Multiple copies|desc=|link=none|align=center|width=555|height=80] ​+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​multi_copy.png ​|Multiple copies}}
  
 And you will get one line by picture in JSesh: And you will get one line by picture in JSesh:
-[img_assist|nid=1379|title=Multiple imports|desc=|link=none|align=center|width=467|height=216]+{{ http://​jsesh.qenherkhopeshef.org/​files_jsesh/​images/​multi_copy_result.png ​|Multiple imports}}
  
-Please **note that this only works if your pictures have been pasted from version 2.11 of JSesh, and in +Please **note that this only works if your pictures have been pasted from version 2.11 or more of JSesh, and in 
 the correct format**. the correct format**.
- 
 ===== Others ===== ===== Others =====
  
 I would be very interested to know if other configurations work I would be very interested to know if other configurations work
doc/en/copy_paste.1334045298.txt.gz · Last modified: 2016/10/12 14:14 (external edit)