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

Document Output #5

Closed
knowtheory opened this issue Jun 4, 2019 · 2 comments
Closed

Document Output #5

knowtheory opened this issue Jun 4, 2019 · 2 comments

Comments

@knowtheory
Copy link
Collaborator

We'll go with exporting as a docx file.

There's a javascript library of the same name which should provide mostf of the functionality needed.

It is notably missing the ability to add attachments, so it won't be possible to include any legislative XML files unfortunately. ☹️

Additionally it's missing the ability to do line numbers (there's a pull request out for this), so if we include the line numbers we'll have to fake it with either a numbered list, or a columnar layout.

@knowtheory knowtheory mentioned this issue Jun 4, 2019
11 tasks
@knowtheory
Copy link
Collaborator Author

knowtheory commented Jun 26, 2019

DocX output is a complicated topic!

For the purpose of this project the basics are definitely available:

  • Font Sizing
  • Font variations (bold, italic smallcaps)
  • line spacing
  • paragraph indentation
  • page breaks.

From there the story gets more complicated, in part due to various document editors idiosyncrasies.

The major remaining piece for this project relies on two features:

  • Line numbering
  • Continuous section breaks.

Regretfully, only Microsoft's Desktop Word supports both of these features. Only LibreOffice supports line numbering. None of Google Docs, Apple's Pages.app or Word's web version support line numbers.

LibreOffice can support line numbering in sections, but at the expense of inserting additional page breaks.

@knowtheory
Copy link
Collaborator Author

We've gone the DocX route.

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