severin image viewer

10
SEVERIN IMAGE VIEWER A Plugin for <oXygen/> Kilian Schmidtner, Stefan Krause Prague, February 2013

Post on 21-Oct-2014

762 views

Category:

Education


0 download

DESCRIPTION

A Plugin for the OxygenXML editor

TRANSCRIPT

Page 1: Severin Image Viewer

SEVERIN IMAGE VIEWERA Plugin for <oXygen/>

Kilian Schmidtner, Stefan KrausePrague, February 2013

Page 2: Severin Image Viewer

WHAT IS SEVERIN?

• shows images inside <oXygen/> (Text Mode and Author Mode)

•main feature: automatic update of images during cursor steps (context sensitive)

• configureable for custom data formats

• free of charge, open source

Page 3: Severin Image Viewer

DEMO

Page 4: Severin Image Viewer

FEATURES• shows images inside <oXygen/> (Text Mode and Author

Mode)

• direct comparison of text and images

• automatic update of images during cursor steps (context sensitive)

• zoom with mouse and buttons

• configureable for custom data formats

• Image file formats: JPEG, PNG

Page 5: Severin Image Viewer

INSTALLATION

• requires <oXygen/>-XML-Editor (Version 12 or newer)

• uses <oXygen/>s add-on manager and its automatic installation and update procedures

• open Options ⇒ Preferences… ⇒ Add-ons and create a new entry with the URL http://severin-image-viewer.googlecode.com/git/trunk/oxygen/SeverinImageViewer.xml

• open Help ⇒ Manage Add-ons… and install the plugin

Page 6: Severin Image Viewer

SHOW IMAGE MANUALLY

• After the installation open the viewer panel

Windows ⇒ Open View ⇒ Severin Image Viewer

• Copy your image dir into Img-Path.

• Select an image filename.

• Press Show Image.

Page 7: Severin Image Viewer

CUSTOMIZATION

• add important image paths to

$USERHOME/OxygenExtension/SeverinImageViewer/lastImgPaths.txt

• define a Known Data Model

$USERHOME/OxygenExtension/SeverinImageViewer/knownDatamodels.xml

Page 8: Severin Image Viewer

SAMPLE: CARDS• <indexCards> <card><!-- framing element --> <text>Moby Dick</text> <imageDir>/Batch001</imageDir><!-- image path --> <imageFile>img_002.jpg</imageFile><!-- image name --> </card> <card> <text>Robinson Crusoe</text> <imageDir>/Batch001</imageDir> <imageFile>img_003.jpg</imageFile> </card> <!-- ... --> <card> <text>Oliver Twist</text> <imageDir>/Batch001</imageDir> <imageFile>img_012.jpg</imageFile> </card></indexCards>

Page 9: Severin Image Viewer

KNOWN DATA MODEL

• <knownDatamodel> <xmlFormat>indexcards</xmlFormat><!-- just a name --> <cssRootElement>card</cssRootElement><!--framing element--> <imageReferenceFields> </imageReferenceField><!-- directory definition --> <fileType>DIR</fileType> <name>imageDir</name> <xmlType>ELEMENT</xmlType> </imageReferenceField> <imageReferenceField><!-- file definition --> <fileType>FILE</fileType> <name>imageFile</name> <xmlType>ELEMENT</xmlType> </imageReferenceField> </imageReferenceFields></knownDatamodel>