-
Notifications
You must be signed in to change notification settings - Fork 66
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
add parameter to set (pass on) the hyphenation language #312
Comments
Sure, we should parametrize the language for I think we should add a new field in |
Ok, I see. Actually I'd like to contribute, but haven't developed R packages before. So I'd need some time to get started (and get familiar with pander's internals). At the moment I won't have time for this either, but hopefully that might change towards the end of the year... 😬 |
FTR it seems that hyphenation is being moved out of |
Since I'm mostly writing stuff in German and the hyphenation function which pander uses under the hood already supports a bunch of languages including German, I'd like to have an option to change the current hard-coded value of
'en.us'
.The relevant code seems to be this line of
helpers.R
:pander/R/helpers.R
Line 404 in 32e0f75
If I'm right, we just need to be able to set
hyph.pattern
directly inpandoc.table
(and maybe other relevant pander functions, I don't know) and pass that argument on tokoRpus::hyphen()
. Of course,'en.us'
could still be the default.According to the package documentation the following languages are currently supported out of the box:
So a lot of non-english speaking people would benefit of this addition 🙂 What do you think?
The text was updated successfully, but these errors were encountered: