source/text/shared/01/about_meta_tags.xhp | 32 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-)
New commits: commit 5910cbd9619da6f850da070babb75abd6d334806 Author: Olivier Hallot <olivier.hal...@libreoffice.org> AuthorDate: Mon Sep 6 09:53:31 2021 -0300 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Tue Sep 7 14:02:11 2021 +0200 tdf#127385 Update HTML <meta> export. Change-Id: I8c3968e89d8b919b57def783b8964efeb3d65ec1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/121722 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/source/text/shared/01/about_meta_tags.xhp b/source/text/shared/01/about_meta_tags.xhp index 77cf44d8c..6e1544f60 100644 --- a/source/text/shared/01/about_meta_tags.xhp +++ b/source/text/shared/01/about_meta_tags.xhp @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <helpdocument version="1.0"> - + <!-- * This file is part of the LibreOffice project. * @@ -18,8 +18,8 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> - - + + <meta> <topic id="textshared01about_meta_tagsxml" indexer="include"> <title id="tit" xml-lang="en-US">HTML import and export</title> @@ -34,13 +34,21 @@ <bookmark_value>META tags</bookmark_value> <bookmark_value>tags; META tags</bookmark_value> </bookmark> -<paragraph role="heading" id="hd_id3154380" xml-lang="en-US" level="1">HTML import and export</paragraph> -<paragraph role="paragraph" id="par_id3145119" xml-lang="en-US">When you export a file to an HTML document, the description and the user-defined file properties are included as META <link href="text/shared/00/00000002.xhp#tags" name="tags">tags</link> 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 <emph>File - Properties</emph>, click the <emph>Description</emph> or <emph>User Defined</emph> tabs, and then type the information you want.</paragraph> +<h1 id="hd_id3154380">HTML import and export</h1> +<paragraph role="paragraph" id="par_id3145119" xml-lang="en-US">When you export a file to an HTML document, the description and the user-defined file properties are included as META <link href="text/shared/00/00000002.xhp#tags" name="tags">tags</link> 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 <menuitem>File - Properties</menuitem>, click the <emph>Description</emph> or <emph>Custom Properties</emph> tabs, and then type the information you want.</paragraph> <paragraph role="paragraph" id="par_id3148552" xml-lang="en-US">The following file properties are converted to META tags when you export a file as an HTML document:</paragraph> <table id="tbl_id3147304"> + <tablerow> + <tablecell> + <paragraph id="par_id321630929312928" role="tablehead" xml-lang="en-US" >ODF Property</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id611630929312929" role="tablehead" xml-lang="en-US" >HTML Tags</paragraph> + </tablecell> + </tablerow> <tablerow> <tablecell> -<paragraph role="paragraph" id="par_id3154935" xml-lang="en-US">File Property</paragraph> +<paragraph role="paragraph" id="par_id3154935" xml-lang="en-US">Title</paragraph> </tablecell> <tablecell> <paragraph role="paragraph" id="par_id3151056" xml-lang="en-US"><TITLE></paragraph> @@ -72,22 +80,22 @@ </tablerow> <tablerow> <tablecell> -<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US">Info fields 1...4</paragraph> +<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US">Custom Properties</paragraph> </tablecell> <tablecell> -<paragraph role="paragraph" id="par_id3157892" xml-lang="en-US"><META NAME="Info field name" CONTENT="Field Content"></paragraph> +<paragraph role="paragraph" id="par_id3157892" xml-lang="en-US"><META NAME="Custom field name" CONTENT="Custom field content"></paragraph> </tablecell> </tablerow> </table> -<paragraph role="note" id="par_id3155855" xml-lang="en-US">When you import an HTML containing these META tags, the contents of the tags are added to the corresponding $[officename] file property box. </paragraph> -<paragraph role="tip" id="par_id0926200812164481" xml-lang="en-US">Keywords must be separated by commas. A keyword can contain white space characters or semicolons.</paragraph> -<paragraph role="heading" id="hd_id3163822" xml-lang="en-US" level="3">Import Tips</paragraph> +<note id="par_id3155855">When you import an HTML containing these META tags, the contents of the tags are added to the corresponding $[officename] file property box. </note> +<tip id="par_id0926200812164481">Keywords must be separated by commas. A keyword can contain white space characters or semicolons.</tip> +<h3 id="hd_id3163822">Import Tips</h3> <paragraph role="paragraph" id="par_id3155307" xml-lang="en-US">When you import an HTML document, following META tags are automatically converted to $[officename] fields: <META HTTP-EQUIV="REFRESH"...> and <META NAME="..." ...> , where NAME equals to AUTHOR, CREATED, CHANGED, CHANGEDBY, DESCRIPTION, KEYWORDS or CLASSIFICATION.</paragraph> <paragraph role="paragraph" id="par_id3146146" xml-lang="en-US">Scripts, comments, and META tags that are positioned directly before a TABLE tag are inserted in the first cell of the table.</paragraph> <paragraph role="paragraph" id="par_id3155366" xml-lang="en-US">Scripts and META tags in the header of an HTML document are imported and anchored to the first paragraph in the document.</paragraph> <paragraph role="paragraph" id="par_id3152885" xml-lang="en-US">To set the options for importing HTML tags, choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - Load/Save - HTML Compatibility</emph>. A known META tag contains either "HTTP-EQUIV" or "NAME", and are imported as $[officename] comments. The only exception is <META NAME="GENERATOR"...>, which is ignored.</paragraph> -<paragraph role="heading" id="hd_id3163717" xml-lang="en-US" level="3">Export Tips</paragraph> +<h3 id="hd_id3163717">Export Tips</h3> <paragraph role="paragraph" id="par_id3159180" xml-lang="en-US">Comments and script fields at the beginning of the first paragraph in a document are exported to the header of an HTML document. If the document begins with a table, the first paragraph in the first cell of the table is exported to the header of the HTML document.</paragraph> </body> </helpdocument>