Crate mdbook_i18n_helpers
source ·Expand description
Helpers for translating mdbook
projects.
The functions here are used to implement a robust
internationalization (i18n) workflow for mdbook
. This allows you
to translate your books into other languages while also making it
easy to keep the translations up to date as you edit the original
source text.
See https://github.com/google/mdbook-i18n-helpers for details on
how to use the supplied mdbook
plugins.
Modules§
- This file contains main logic used by the binary
mdbook-gettext
. - Normalize the Markdown in a PO or POT file.
- This file contains main logic used by the binary
mdbook-xgettext
.
Structs§
Enums§
- Markdown events grouped by type.
Functions§
- Extract Markdown events from
text
. - Extract translatable strings from
document
. - Group Markdown events into translatable and skipped events.
- Like
mdbook::utils::new_cmark_parser
, but also passes aBrokenLinkCallback
. - Render a slice of Markdown events back to Markdown.
- Translate
events
usingcatalog
. - Trim
new_events
if they’re wrapped in an unwanted paragraph. - Re-wrap the sources field of a message.