Create binaries to support stand-alone usage #68
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
The
mdbook-xgettext
plugin can currently only be used frommdbook
since it reads a special JSON format on standard input. However, it would be quite easy to use the same code to extract text from any Markdown file on disk. We should create a small binary which does this.Similarly for
mdbook-gettext
: we should create a small binary which will translate a Markdown file into another language using a PO file.Having these binaries would make it slightly easier to text our own code:
should be enough to produce a PO file on standard output (it would show that
*bar*
is normalized to_bar_
, for example). I could have used this kind of ad-hoc testing when I was battling corner-cases in #33.The text was updated successfully, but these errors were encountered: