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

Change the fonts in the docx / odt documents #156

Open
aubertc opened this issue Mar 1, 2024 · 9 comments
Open

Change the fonts in the docx / odt documents #156

aubertc opened this issue Mar 1, 2024 · 9 comments

Comments

@aubertc
Copy link
Contributor

aubertc commented Mar 1, 2024

Changing the fonts in the docx / odt documents to URW Gothic and Hack requires, if I understand correctly, to

Some additional guidance may come from https://stackoverflow.com/questions/34600141/how-to-specify-the-font-used-for-word-doc-exported-using-pandoc.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 18, 2024

The odt version should be taken care of and documented with 4063488

@aubertc
Copy link
Contributor Author

aubertc commented Mar 26, 2024

The docx version seems more challenging. Cf. jgm/pandoc#6728 and attempt with 174d641 (the template uploaded is simply the original template, not edited.)

@aubertc
Copy link
Contributor Author

aubertc commented Mar 26, 2024

Editing the template using libreoffice gives better results, but Word then complaints:

image
image

However, clicking "yes" twice gives a document that can be read and correctly edited.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 26, 2024

@aubertc
Copy link
Contributor Author

aubertc commented Mar 26, 2024

Ok, with docx template, I receive this error:

Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/kkoxe8asp
Switched to a new branch 'github-pages-deploy-action/kkoxe8asp'
/usr/bin/git commit -m Deploying to gh-pages from @ csci-1301/csci-1301.github.io@453ec5d2511ef749db869b81654acdb79d3201e1 🚀 --quiet --no-verify
Force-pushing changes...
/usr/bin/git push --force ***github.com/csci-1301/csci-1301.github.io.git github-pages-deploy-action/kkoxe8asp:gh-pages
remote: error: Trace: a28f28273f6f3ab1d94ce140b7b92a413041bdde0d9d74e30af4079413c5635f        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File release.zip is 323.36 MB; this exceeds GitHub's file size limit of 100.00 MB        
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com./        
To https://github.com/csci-1301/csci-1301.github.io.git
 ! [remote rejected] github-pages-deploy-action/kkoxe8asp -> gh-pages (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/csci-1301/csci-1301.github.io.git'
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/kkoxe8asp
Reset branch 'github-pages-deploy-action/kkoxe8asp'
/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌
Notice: Deployment failed! ❌

So, it seems that using and embedding custom fonts for docx results in a website too heavy for github.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 26, 2024

Not embedding any font, the website is ~43 MiB and the zip archive is ~38 MiB (according to the logs).
f94bc90 is an attempt to make the website lighter while not breaking any functionality.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 27, 2024

After some optimization, the website is down to ~28 MiB and the archive to ~23 MiB. This may be enough to embed the fonts in the documents.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 27, 2024

Odt template goes from 11.8kio to 664 kio if I embed the fonts Hack and URW_Gothic in it.
The website goes up to ~62 MiB and the archive to ~57 MiB.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 27, 2024

The docx template goes from ~10kio to …3.4 MiB :-/
I will keep looking into this, but it may be a lost cause.

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