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

docx template improvements #12

Open
jftsang opened this issue Jan 8, 2023 · 2 comments
Open

docx template improvements #12

jftsang opened this issue Jan 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jftsang
Copy link
Owner

jftsang commented Jan 8, 2023

  1. Fonts: Merriweather for serifs, Raleway for sans-serifs
  2. Font color: Black, not gray
  3. Logo on top left, header on top right
  4. Reduced margins/spacings
  5. Reduced font sizes
  6. Section for 'Forthcoming Services and Events'
@jftsang jftsang added the enhancement New feature or request label Jan 8, 2023
@jftsang jftsang changed the title Use new fonts Template improvements on the docx Jan 8, 2023
@jftsang jftsang self-assigned this Jan 8, 2023
@jftsang jftsang changed the title Template improvements on the docx docx template improvements Jan 8, 2023
jftsang added a commit that referenced this issue Jan 8, 2023
Issue #12

Reduced margins and paragraph spaces, alignment of title, and section at
bottom for future events.

Fonts are a bit messed up at the moment - it should be using
Merriweather for serifs and Raleway for sans-serifs.
@kroll-101
Copy link
Collaborator

On your points:

  1. Merriweather for serifs only for headings. Body text in Cambria. Body text justified not left-aligned.
  2. Yes
  3. Header top right, but centrally aligned within the space left from the logo. Might be easier to implement as a 2-column table?
  4. See template sent
  5. Ditto
  6. Yes please

Also footer address.

jftsang added a commit that referenced this issue Apr 21, 2023
Issue #12:

  * Use Cambria for body texts
  * Use new template
  * Footer address

Issue #15

  * Use special docxtpl tags `{%p for ... %} {%p endfor %}`
    https://docxtpl.readthedocs.io/en/latest/#tags
    which sort out trailing newlines.

TODO:

  * Anthem lyrics
  * Paragraphs in anthem text block

Test case: /pewSheet?title=Easter+II+(St.+George)&primary_feast_name=easter-ii&secondary_feast_name=st-george&date=2023-04-23&celebrant=Revd+Bruce&preacher=Dr+Bruce&introit_hymn=NEH%3A+13&offertory_hymn=NEH%3A+3b&recessional_hymn=&anthem_title=O+for+the+wings+of+a+bat&anthem_composer=W.+T.+F.+Bach&anthem_lyrics=Chug-a-chug-a-chug%0D%0AChug-a-boom%2C+boom%2C+boom
@jftsang jftsang added this to PyPew Apr 22, 2023
@jftsang
Copy link
Owner Author

jftsang commented Sep 2, 2023

@kroll-101 What else needs to be done here? Can you separate them into separate tickets and then close this one please?

@jftsang jftsang assigned kroll-101 and unassigned jftsang Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants