Smart paste

Post here questions and problems related to oXygen frameworks/document types.
stdu
Posts: 81

Smart paste

Wed Aug 07, 2013 1:59 pm

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: 4144

Re: Smart paste

Wed Aug 07, 2013 3:36 pm

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

Re: Smart paste

Fri Aug 16, 2013 1:57 pm

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests