Smart paste

Post here questions and problems related to oXygen frameworks/document types.
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Smart paste

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Smart paste

Post 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
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: Smart paste

Post 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
Post Reply