OpenTechStrategies / SimpleBook

A fork of the Collection Extension to print books from MediaWiki instances
1 stars 1 forks source link

Update the default styles of SimpleBook #48

Open slifty opened 3 years ago

slifty commented 3 years ago

In the long run we should make things like fonts and styles customizable somehow.

In the short run lets use the LFC style guide, which is essentially:

• Use Calibri 11 pt font (not Calibri body) • Use Calibri 12 pt font, bold for paper titles • Use 1” margins on all sides of the paper (top, bottom, left, and right) • Use single spacing • Use one space after sentence punctuation (sorry @kfogel) • Use bold for subheadings – do not use underline (underline indicates a hyperlink in BoardEffect)

some of these items should be implemented on the wiki side, but the font in particular will apply to the table of contents, pagination, and title page.

slifty commented 3 years ago

Note: Calibri is not free, but it has a comparable font called "Carlito"

Carlito isn't a web font / isn't served by google fonts for some reason.

That said, I have since found out that there is a different style guide that I will be using (which does invoke web fonts). Will update this issue with more information shortly.

kfogel commented 3 years ago

All sounds good.

If LFC's style requirements involve any non-freely-licensed fonts, then we will have to find a way to make fonts configurable in SimpleBook sooner rather than later. I.e., it's fine to deploy non-free-fonts for our client's instance, of course (assuming we're still abiding by the license, whatever the license is), but we can only ship SimpleBook as an open source project with freely-licensed fonts.

Unrelatedly: hey, I'm actually okay with one-space-after-sentence-ending-period in text that is decently typeset and uses a proportional typeface. I mean, I still think two spaces is better, but the difference is not so great there. It's the avoidance of two-spaces in monospace text (e.g., comments in computer source code, Markdown files, LaTeX source documents, etc) that seems noticeably bad to me.

slifty commented 3 years ago
image

^ Updated specs for the simple book for LFC

slifty commented 3 years ago

The first phase of work on this is actually related to torque-sites rather than SimpleBook and is also not in traditional version control -- I'm currently editing the templates to remove inline CSS and updating the mediawiki common.css.

This will have to be manually replicated across the different competitions (and the common.css will be updated in torque-sites)

Once this is done I'll update the SimpleBook styling (specifically the table of contents, page numbers, and title pages) to reflect the new standards (and / or allow for customization)