Subject locator previews

From WandoraWiki
Revision as of 17:21, 5 December 2015 by Akivela (Talk | contribs)

Jump to: navigation, search

If you just popped into this page, notice the page is still unfinished...

Wandora's Traditional topic panel views subject locator resources if the View subject locators option is enabled. The menu option is available at View > Traditional w ... > View subject locators. Also, right to the subject locator field is an icon button toggle to switch subject locator previews on and off. Wandora doesn't view subject locator resources by default.

When subject locator preview is enabled, Wandora checks if there is a valid subject locator URI and tries to figure out mimetype for the subject locator resource. Wandora supports both external resources and internal data URI resources. Once the mimetype is resolved, Wandora chooses a viewer for the resource and initializes the viewer.

Supported preview formats

Wandora selects a viewer for the subject locator resouce using resources mimetype. At the moment Wandora has a viewer for images, videos, web pages etc. Next table lists all viewers and supported formats (2015-11-13).

Mimetype(s) File extension(s) Handler Description and notes

audio/midi
application/x-midi

mid
midi
rmf

AudioMidi

Midi audio player.


audio/x-flac

flac

AudioFlac

Flac audio player.



audio/ogg
application/ogg

ogg
ogx

AudioOgg

Ogg Vorbis audio player.



audio/x-sidtune
audio/sidtune
audio/x-psid
audio/psid
audio/prs.sid
audio/x-sid

sid

AudioSid

Sid tune audio player. See also The High Voltage SID Collection



audio/mod
audio/xm
audio/wow
audio/it
audio/stm
audio/s3m
audio/xm

mod
wow
it
stm
s3m
xm

AudioMod

Mod audio player.



audio/x-wav
audio/x-aiff
audio/basic

wav
aif
au

AudioWav

Basic audio sample player for wav and aiff files.


audio/mpeg
audio/x-mpeg-3
audio/mpeg3

mp3

AudioMP3v2

Audio MP3 player.



image/*

gif
jpg
jpeg
tif
tiff
png

Image

Image viewer. Even though the viewer captures all image mimetypes, viewer supports only image types supported by Java.



application/pdf

pdf

ApplicationPDF

PDF viewer.



text/rtf
application/rtf

rtf

TextRTF

RTF viewer.



text/html

html
htm

TextHTML

General web viewer.




application/xml
text/xml

xml

ApplicationXML

General XML viewer.



text/*

txt
text
asm
asp
bat
c
....

Text

General text viewer that captures all text type mimetypes and many text file formats.



application/x-zmachine
application/x-zmachine-1
application/x-zmachine-2
application/x-zmachine-3
application/x-zmachine-4
application/x-zmachine-5
application/x-zmachine-6
application/x-zmachine-7
application/x-zmachine-8 application/x-blorb

z1
z2
z3
z4
z5
z6
z7
z8
zblorb
zlb

ApplicationZMachine

Viewer runs interactive fiction files in Z machine format and the user can play the games. Viewer is based on Z-Machine Preservation Project (ZMPP) created by Wei-ju Wu. Wandora fork is avalable in GitHub as a separate project.





Values in Handler column are Java classes in package org.wandora.application.gui.previews.formats.