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

Gryphon formatting import #55

Closed
1beb opened this issue Apr 8, 2020 · 1 comment
Closed

Gryphon formatting import #55

1beb opened this issue Apr 8, 2020 · 1 comment
Assignees
Milestone

Comments

@1beb
Copy link
Collaborator

1beb commented Apr 8, 2020

In Gryphon, we often use basic markdown formatting on question text. However, these updates are not typically visible in toplines or crosstab documents created by crunchtabs. Need to explore a method for "copying over" this injected formatting.

In a perfect world - that there was some formatting in the question that the respondent saw would also be replicated in the tabs

  • text wrapped in ** should be converted to \textbf{text}
  • text wrapped in <u></u> should be \underline{} (need to use character entity too, such as < >)
  • <br> or <br /> should be converted to a newline (a carriage return)

The XML export from Gryphon appears to provide all of the information that we need to copy over formatting elements like underline, bold and new lines.

@1beb 1beb mentioned this issue Apr 8, 2020
4 tasks
@1beb 1beb self-assigned this Apr 10, 2020
@1beb 1beb added this to the 1.2.5 milestone Apr 29, 2020
@1beb 1beb modified the milestones: Release 1.2.5, Release 1.2.6 May 8, 2020
@1beb
Copy link
Collaborator Author

1beb commented Feb 1, 2021

Formatting input would require QDF parsing which would be a significant (although worthwhile) effort. It would also require a conversion between QDF/HTML formatting and LaTex. These elements are currently outside the scope of crunchtabs.

However, we have provided a new function, called relabel that allows the user to inject arbitrary text into the description or notes. This could be used, for example, to write LaTex that matches what is shown during our web-based survey and what is presented in crunchtabs.

@1beb 1beb closed this as completed Feb 1, 2021
@1beb 1beb mentioned this issue Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant