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

Line breaking in discourse vis based on annotations #49

Closed
amir-zeldes opened this issue Nov 6, 2012 · 1 comment
Closed

Line breaking in discourse vis based on annotations #49

amir-zeldes opened this issue Nov 6, 2012 · 1 comment

Comments

@amir-zeldes
Copy link
Collaborator

It should be possible to get line breaks in the discourse visualization based on the beginning of an annotation. This could be configured via mappings. For example, if there is an annotation p="p", which stands for paragraphs in the original document, we could use the mapping:

break:p="p"

to tell the discourse visualizer to start a new line of tokens as soon as the first token on the left border of an annotation p="p" occurs. It should be possible to map multiple breaking elements (e.g. pb and lb for page break and line break, both cause a line break in the vis), and it should be possible to condition with or without the annotation value, e.g.

break:p="p",lb,pb

This should cause a line break every time an annotation 'lb' or 'pb' begins, and also for 'p', but only if the value is also "p" (for lb and pb the value has been left open).

@thomaskrause
Copy link
Member

also see #80 for a more general concept

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