Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Viewer functionality is underdocumented #579

Open
sdruskat opened this issue May 2, 2018 · 1 comment
Open

PDF Viewer functionality is underdocumented #579

sdruskat opened this issue May 2, 2018 · 1 comment

Comments

@sdruskat
Copy link
Contributor

sdruskat commented May 2, 2018

The respective section of the user guide says

pdf/pdfdoc – it is possible to configure the height of the pdf window using the height instruction (in pixels), as well as the name (node_key) of the node annotation to be used to give individual page numbers aligned with a span of tokens (relevant for pdf only, pdfdoc always shows all pages). The instructions can be combined as follows: node_key:pp;height:400.

This is outdated and not of great help. At least the following info should be included:

  • The key has changed to pdf_page_key. It must be included in the viz setup in resolver_vis_map.annis.
  • If you want to auto-link between annotations on the node bearing the PDF page annotation (would be read via pdf_page_key:{page_annotation} and the PDF viz, this must also be defined in the respective grid showing the page annotation.
  • The default value for the key is page.
  • Example set ups of the resolver_vis_map.annis would be very helpful for all visualizers. Here's one for this example:
{corpus-name}	NULL	NULL	node	grid	grid (annotations)	hidden	1	hide_tok:true;annos:/{namespace}::{name}/,...;pdf_page_key:page
{corpus-name}	NULL	NULL	NULL	pdf	pdf	preloaded	999	pdf_page_key:page

Happy to make these changes once #578 is fixed.

@thomaskrause
Copy link
Member

#578 is finally fixed the documentation is now part of the git repository and stored in markdown files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants