Checker for translated mdbook
console
$ cargo install mdbook-transcheck
console
$ mdbook-transcheck src tgt
src
is the source directory of original mdbook.
tgt
is the source directory of translated mdbook.
```console $ mdbook-transcheck ./testcase/original ./testcase/translated
Error: target path is not found source path: testcase/original/missingfile.md target path: testcase/translated/missingfile.md
Error: source line has been modified source --> testcase/original/missing_lines.md:5 | 5 | This is an orange. | ^^ ^^ |
target --> testcase/translated/missing_lines.md:9 | 9 | This is an apple. | ^^^ |
Error: lines has been inserted to the source file source --> testcase/original/missinglines.md:2 | 2 | Orange | = hint: The lines should be inserted at testcase/translated/missinglines.md:2 ```