1

代替テキスト属性が 1033 文字の画像を含むマットテキスト ノードを持つ QTI ファイルをインポートすると、Sakai インスタンスが吐き出すという問題が発生します。一般的に、alt 属性は 1024 文字を超えてはならないことを示唆する仕様書を見つけました (そして、1024 文字を超えるものは別の方法で表示する必要があることに同意します)。私はソース データを制御できませんが、必要に応じて出力のテキストを切り詰めることができます。

Sakai のインポート、mattext ノードの処理、または私が実行した限られた Sakai コード検索のいずれかで、何らかの制限があるという確固たる証拠を見つけることができません。

私が何かを見逃しているかどうか誰にも分かりますか?

私が期待する長期的な解決策は、情報の作成者にアプローチし、データを作成する際に合理的な制限を設定するようにすることですが、それが常に起こるとは期待できません.

ありがとう!

(注: ノード内のテキストを短縮しました。具体的には、alt="" 画像属性とインポートが機能しました。データに特殊文字や奇妙な文字グループはありませんでした。これは単なるサイズの問題のようです。)

問題のあるノードは次のとおりです。

<mattext charset="ascii-us" texttype="text/plain" xml:space="default">
<![CDATA[
<p style="padding:0px;margin:0px;">Using the periodic table below, determine the atomic number of silicon (Si).</p> <p><img style="max-width: 100%; height: auto; width: auto;" src="https://www.founderseducation.net/assets/images/d58d6d19cf4e2b0f48a3650e5a3933a22ddb9508.png" alt="Image of the periodic table for use on test questions. Only elements that will potentially be in questions are included. Format of each block will be the name of the element, the symbol, the atomic number, and finally the mass number. Hydrogen, H, 1, 1. Helium, He, 2, 4. Lithium, Li, 3, 7. Berylium, Be, 4, 9. Boron, B, 5, 10.8. Carbon, C, 6, 12. Nitrogen, N, 7, 14. Oxygen, O, 8, 16. Fluorine, F, 9, 19. Neon, Ne, 10, 20.2. Sodium, Na, 11, 23. Magnesium, Mg, 12, 24.3. Aluminum, Al, 13, 27. Silicon, Si, 14, 28. Phosphorus, P, 15, 31. Sulfur, S, 16, 32. Chlorine, Cl, 17, 35.45. Argon, Ar 18, 40. Potassium, K, 19, 39. Calcium, Ca, 20, 40. Scandium, Sc, 21, 45. Titanium, Ti, 22, 47.9. Vanadium, V, 23, 51. Chromium, Cr, 24, 52. Manganese, Mn, 25, 55. Iron, Fe, 26, 55.8. Cobalt, Co, 27, 59. Nickel, Ni, 28, 58.7. Copper, Cu, 29, 63.5. Zinc, Zn, 30, 65.4. Gallum, Ga, 31, 69.7. Germanium, Ge, 32, 72.6. Arsenic, As, 33, 75. Selenium, Se, 34, 79. Bromine, Br, 35, 80. Krypton, Kr, 36, 83.8. Silver, Ag, 47, 107.8. Gold, Au, 79, 197." /></p>
]]>
</mattext>
4

0 に答える 0