godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.95k stars 3.22k forks source link

Words are hyphenated when compiled to chm #4984

Open Ahmed0425 opened 3 years ago

Ahmed0425 commented 3 years ago

I used to compile the documentation into chm format using this tutorial I posted in the forum and tbh, it's a quite interesting way to read the documentation but words are cut to half when it reaches the end of the line .. see the screenshot

https://imgur.com/PITRUhG

see the word (community-driven) in the first line right after the tip box ant the word (documentation) a few lines after

A clearer view of the issue is when you resize the window and I uploaded my own copy in case you don't want to compile here on zippyshare (3.3 branch) and master branch here on zippyshare (I encountered the issue in both of them)

finally, Thanks in advance for reading until the end :)

Calinou commented 3 years ago

This is likely an issue with Sphinx we can't solve on our end.

Ahmed0425 commented 3 years ago

This is likely an issue with Sphinx we can't solve on our end.

Thanks for the tip after some searches, I found this and this in quora and I found that adding this inside custom.css inside (_static\css) folder worked

div.body p, div.body dd, div.body li, div.body blockquote {
    -moz-hyphens: none;
    -ms-hyphens: none;
    -webkit-hyphens: none;
    hyphens: none;
}

this also gave the same result

div.body p, div.body dd, div.body li, div.body blockquote {
    -moz-hyphens: manual;
    -ms-hyphens: manual;
    -webkit-hyphens: manual;
    hyphens: manual;
}

Not sure about the difference though and I'm not familiar with git so, I can't push a pull request .. also you will notice that lines become static and are not updated when resizing the window, probably can be fixed by adjusting the code I put but I'm not familiar with css so, I can't help with that :(

Hope this helps :)