Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

0.7.7 rejects entity names longer than 10 letters (for example ⁢)

オープン 初心者向け
#896 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust, xml

調査の方向性

issue では、src/interface.rs の正規表現 HTML_ENTITIES と entities.in のエンティティ名が示されています。正規表現がどのように HTML_ENTITIES_MAPPING に渡されるかを読み、10 文字を超える名前を含む、列挙された例を確認してください。SetMathML がこれらの名前付きエンティティを受け入れれば完了です。issue では、リリース DLL における GetMathCATVersion() の別個の不一致も報告されています。

索引モデルが issue の本文から書いたものです。

説明

bug

In 0.7.7, SetMathML rejects MathML that uses a named entity longer than ten letters. For example:

<math><mi>x</mi><mo>&InvisibleTimes;</mo><mi>y</mi></math>

SetMathML returns an empty string, and GetError says:

Invalid MathML input: ... XML parsing error at 21: {UnknownNamedReference}

0.7.5 handles the same input. Short names still work (⁢, ⁡, π, →), and so do numeric references. The cut-off is the length of the name: ⅈ (10 letters) works and ⊗ (11 letters) fails.

The cause looks like the HTML_ENTITIES regex in src/interface.rs. In 0.7.0 it was &([a-zA-Z]+?);, and in 0.7.7 it is &([a-zA-Z]{2,10});, so longer names never reach HTML_ENTITIES_MAPPING and the XML parser sees them unresolved. entities.in has 294 names longer than 10 letters, up to CounterClockwiseContourIntegral at 31, so the upper bound needs to be at least 31.

Separately, GetMathCATVersion() in the MathCATForC v0.7.7 release DLL returns "0.7.6-rc.4".

We found this while moving JAWS to 0.7.7, and we work around it on our side for now. Thanks for the release, and for the heads-up about the minimized rules.

主要言語
Rust
スター
123
フォーク
93
平均マージ
4日 6分
マージ済み PR(30日)
57

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

daisy/MathCAT のほかの issue

daisy/MathCAT の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。