-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor extension #11
Conversation
能描述一下这一版是怎么work的吗 |
可能我们最好能有一种方便大规模测试的工具..比如考虑把对应的原文也生成到html里面,搞点css,做成一个叠加层,这样能比较一目了然地看出来哪里有问题,哪里没有 |
目前原文就在 HTML 里,有一个 |
首先,获取预处理前(也就是原始文档)和预处理后(一部分数据被使用占位符覆盖)的文档的 diff,这通过 Python 内置的 |
我的期望是我们能有一个很方便的,含人量比较少的测试工具,能让我们方便地在 oi-wiki/oi-wiki 上验证我们的算法的正确性 |
有。使用 debug 模式运行 mkdocs 编译,你可以看到一些 WARN 和 ERROR:
这说明该文本块的解析是不准确的(可能会漏掉一些文字)
这说明该文本块无法被还原到原文档,这会导致根本不生成 offset 除此之外,在 debug 模式下,还会插入 |
这个不是测试吧,只是你的算法运行的时候打的一些log |
确实不是,但是如果要实际看做一下的话很容易,可能弄个脚本就行了 |
This PR refactor the entire extension, bump version to v0.1.0, the following stuff changed:
difflib
to generate diff opcodes.