GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add Vazirmatn (v33.003) support for Farsi by sepehr-rs · Pull Request #331 · python/python-docs-theme Conversation
Contributor
Adds Vazirmatn for Farsi builds. Vazirmatn is an open-source font licensed under the SIL Open Font License. Adding this to Farsi builds improves the readability and quality of the documentation. Please let me know if any changes or additions are needed. Thanks in advance!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Documentation build overview
19 files changed ·
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Stan Ulbrych <[email protected]>
|
Thanks for the review! Sidenote: I found an issue with the sidebar while investigating this; The sidebar button's direction is reversed in RTL mode: I think it'd be a very small fix, but should I make a separate PR for it, or fix it here if the scope creep is acceptable? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Vazirmatn is unmaintained following the death of its creator: Vazirharf is a maintained fork, is that suitable? In either case, the current .woff isn't too large at 109 KB, so bundling should be fine so we don't need to use a CDN. But Vazirmatn says:
Can we use the Non-Latin version? That'd reduce it by around half:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't oppose using a fork, but the font and its glyph coverage are stable, and the fork doesn't offer a benefit that matters for documentation (its only difference is how Lam-Alef is handled, which is aimed at typing sites). There's also no visible difference between the two, so I'd slightly lean towards staying with the original upstream release. That said, I'm happy to switch if the project prefers a maintained font, so I'll leave the decision to you. Good point on the Non-Latin build. Vazirmatn also has a variable-weight Non-Latin version, and it's slightly smaller than Vazirharf's: Please let me know what you think is best going forward, and thanks for the review! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Let's stick with the original then, and go with that Non-Latin version. We can switch to a fork later if there's a concrete need to do so. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I added the version number in the title, so it'll go into the commit message, so we can easily check the version.
I think it'd be a very small fix, but should I make a separate PR for it, or fix it here if the scope creep is acceptable?
Let's do a new PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks a lot for the review! I'll open a separate PR for that change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The CI is failing with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think we can just ignore the warning? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
for more information, see https://pre-commit.ci
|
Let's rather exclude, so we only have one copy in the expected place? Something this: build.targets.wheel.exclude = [ "python_docs_theme/locale/**/*.po", "python_docs_theme/static/fonts/OFL.txt" ] Ignoring W002 means we could easily end up with other duplicates in the future without realising. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Makes sense. Excluded |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We can see the contents of the sdist at https://github.com/python/python-docs-theme/actions/runs/35627886765 It has the licence next to the font: And it also shows the wheel, with the licence in the designated But it doesn't need to be directly next to the font. The licence says:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks a lot for taking the time to explain this to me! I understand it now =). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| div.body :is(h1, h2, h3, h4, h5, h6), | ||
| div.sphinxsidebar :is(h3, h4), | ||
| input, | ||
| select, | ||
| textarea, | ||
| button:not(.copybutton) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This all seems a little duplicative, maybe just:
body,
input,
select,
textarea,
button:not(.copybutton),
should work?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actually no, I had to make it even more specific; otherwise, the font wouldn’t apply to some elements. Several theme rules set font-family directly on headers and sidebar/related inputs, which overrides inheritance from body. So I had to target those elements directly to override those rules.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hey @StanFromIreland, just checking in on this. I think it's ready to merge, and I’d love to see Vazirmatn support added to the Farsi documentation! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks a lot for the thorough review from both of you @StanFromIreland @hugovk! I really appreciate it =). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@sepehr-rs And thanks for all your work on this! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.