Skip to content

修复了2个badcase,1:输入丢失命名空间,无法匹配xsl模板;2:公式段落划分错误#433

Closed
1041206149 wants to merge 3 commits into
ccprocessor:devfrom
1041206149:dev
Closed

修复了2个badcase,1:输入丢失命名空间,无法匹配xsl模板;2:公式段落划分错误#433
1041206149 wants to merge 3 commits into
ccprocessor:devfrom
1041206149:dev

Conversation

@1041206149

@1041206149 1041206149 commented May 30, 2025

Copy link
Copy Markdown
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here and update the documentation.

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects.
  • CLA has been signed and all committers have signed the CLA in this PR.

@@ -0,0 +1,6842 @@

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件名称用更容易理解的名称吧

raise HtmlMathRecognizerException(f'处理数学公式失败: {e}')
return self.html_split_by_tags(tree, [CCTag.CC_MATH_INTERLINE])

def read_test_html(html_file):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自己测试的代码不需要提交

---------------------

These stylesheets are maintained by Vasil Yaroshevich, <yarosh@raleigh.ru>.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

当前怎么看用的哪个 mmltex 版本

1:部分输入丢失命名空间,无法匹配xsl模板;
2:部分公式段落划分错误;
3: 形如如 \text{...}的公式内容,花括号前被错误添加\left和\right
1041206149

This comment was marked as resolved.

@1041206149

Copy link
Copy Markdown
Contributor Author

修复bug 1:部分输入丢失命名空间,无法匹配xsl模板; 2:部分公式段落划分错误; 3: 形如如 \text{...}的公式内容,花括号前被错误添加\left和\right

@1041206149 1041206149 closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants