HTML のインポートとエクスポート

When you export a file to an HTML document, the description and the user-defined file properties are included as META tags between the HEAD tags of the exported document. META tags are not displayed in a Web browser, and are used to include information, such as keywords for search engines on your Web page. To set the properties of the current document, choose File - Properties, click the Description or Custom Properties tabs, and then type the information you want.

ファイルを HTML 形式ドキュメントにエクスポートする際に、META タグとして登録される情報は、下記のファイルプロパティです。

ODF Property

HTML Tags

Title

</p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3153778" class="paragraphintable" dir="auto">テーマ</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3147228" class="paragraphintable" dir="auto"><META NAME="CLASSIFICATION" CONTENT="フィールドの内容"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3154908" class="paragraphintable" dir="auto">キーワード</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3156422" class="paragraphintable" dir="auto"><META NAME="KEYWORDS" CONTENT="フィールドの内容"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3151041" class="paragraphintable" dir="auto">説明</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3125863" class="paragraphintable" dir="auto"><META NAME="DESCRIPTION" CONTENT="フィールドの内容"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3159149" class="paragraphintable" dir="auto">Custom Properties</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3157892" class="paragraphintable" dir="auto"><META NAME="Custom field name" CONTENT="Custom field content"></p> </td> </tr> </table> <br> <div class="note"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id3155855" dir="auto">META タグが埋め込まれた HTML 形式ファイルをインポートする場合、これらのタグの内容は、対応する LibreOffice ファイルプロパティのボックスに取り込まれます。</p></div> </div> <br> <div class="tip"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id0926200812164481" dir="auto">キーワードはコンマで区切る必要があります。キーワードには、空白文字、セミコロンを含むことができます。</p></div> </div> <br> <h3 id="hd_id3163822" dir="auto">インポートする際のヒント</h3> <p id="par_id3155307" class="paragraph" dir="auto">HTMLドキュメントをインポートすると、<META HTTP-EQUIV="REFRESH"...> および <META NAME="..." ...> のMETAタグは自動的にLibreOfficeのフィールドに変換されます。ここでタグ中のNAMEの部分にはAUTHOR、CREATED、CHANGED、CHANGEDBY、DESCRIPTION、KEYWORDS、または、CLASSIFICATION が入ります。</p> <p id="par_id3146146" class="paragraph" dir="auto">TABLE タグの直前に置かれたスクリプト、コメント、META タグは、表の最初のセルに挿入されます。</p> <p id="par_id3155366" class="paragraph" dir="auto">HTML 形式ドキュメントのヘッダー部に置かれたスクリプトと META タグは、インポート時にドキュメントの最初の段落にアンカーされます。</p> <p id="par_id3152885" class="paragraph" dir="auto">HTMLタグをインポートするときのオプションは、<span class="emph"><span id="swlnsystextshared01about_meta_tagsxml_1" class="switchinline"><span hidden="true" id="MACtextshared01about_meta_tagsxml_1" class="MAC">LibreOffice → 設定</span><span hidden="true" id="defaulttextshared01about_meta_tagsxml_1"> ツール → オプション</span></span> → 読み込みと保存 → HTML互換性</span> で設定します。"HTTP-EQUIV"または"NAME"を含むMETAタグは既知として扱われ、インポートではLibreOfficeのコメントに変換されます。しかし例外として<META NAME="GENERATOR"...>だけは無視されます。</p> <h3 id="hd_id3163717" dir="auto">エクスポートする際のヒント</h3> <p id="par_id3159180" class="paragraph" dir="auto">ドキュメントの最初の段落の始まりにあるコメントやスクリプトフィールドは、HTML 形式ドキュメントのヘッダーにエクスポートされます。表で始まるドキュメントの場合、テーブルの最初のセルにある第 1 段落が、HTML 形式ドキュメントのヘッダーにエクスポートされます。</p> </div> <div id="SearchFrame"></div> <div id="DonationFrame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/shared/01/about_meta_tags.xhp" target="_blank">/text/shared/01/about_meta_tags.xhp</a></p> <p dir="auto">Title is: HTML のインポートとエクスポート</p> <p id="bm_module" dir="auto"></p> <p id="bm_system" dir="auto"></p> <p id="bm_HID" dir="auto"></p> </div></footer> </body> </html>