Page 1 of 1

Smart paste

Posted: Wed Aug 07, 2013 1:59 pm
by stdu
Hi,

how can I adapt the smart paste function (copy & paste from MS Word and replacing elements at once) from the TEI P5 documenttype association in my own framework? I've already done this, but unfortunately I don't remember how...

Thx,
Stefan

Re: Smart paste

Posted: Wed Aug 07, 2013 3:36 pm
by sorin_ristache
Hi,

Do you have a customized version of the TEI P5 framework? If yes you should just make sure you include in your framework the tei.jar file and the resources subdirectory from the [Oxygen-install-dir]\frameworks\tei directory. I think that should be all you need to "import" the smart paste feature from TEI P5 to your framework.

If you want to change some XML element or attribute names created by the Paste action in the XML document then you can customize that in your copy of the stylesheet [Oxygen-install-dir]\frameworks\tei\resources\xhtml2tei5.xsl.


Regards,
Sorin

Re: Smart paste

Posted: Fri Aug 16, 2013 1:57 pm
by stdu
Hi Sorin,

thanks for your hint - that helped! For the record and perhaps other users: it is also necessary to include the TEIP5ExtensionsBundle from tei.jar in the oxygen framework definition under Extensions > Extensions Bundle. After this you can use the smart paste function in your own framework.

Greets,
Stefan