Skip to content

How to handle a specialized addition to bookdown? #671

@dmurdoch

Description

@dmurdoch

This question on StackOverflow asks for a very specialized addition to bookdown to support the Hungarian language: rather than \ref in LaTeX, it needs \aref from the babel-magyar package (or something like that), because Hungarian has special grammatical rules for dealing with numbers.

I wrote a tiny package that monkey-patches bookdown when loaded to support @aref as well as @ref. It's a pretty fragile solution, because as soon as bookdown updates one of the patched functions, my package will also need an update. I could submit a PR to incorporate the code into the main bookdown, but I suspect there aren't really that many Hungarian users, and I doubt if the bookdown authors want to support this. And there are a lot of languages, so there are probably other specialized patches that others would want.

So what would be a good strategy for going forward with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementnextto consider for next release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions