Text direction can selected in the config via the `text_direction` attribute in `book.toml`, or be derived from the book's language.