forked from amazingfate/help
Replacement done with
find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'
(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)
translation files will be prepped with:
find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
$'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'
(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)
Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
73 lines
4.1 KiB
XML
73 lines
4.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* 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="textsimpressguidehtml_importxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Importing HTML Pages Into Presentations </title>
|
|
<filename>/text/simpress/guide/html_import.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3146121"><bookmark_value>importing; presentations with HTML</bookmark_value>
|
|
<bookmark_value>presentations; importing HTML</bookmark_value>
|
|
<bookmark_value>HTML; importing into presentations</bookmark_value>
|
|
<bookmark_value>text documents;inserting in slides</bookmark_value>
|
|
<bookmark_value>inserting; text in presentations</bookmark_value>
|
|
</bookmark><comment>mw moved "inserting;" from simpress/01/04110200.xhp</comment>
|
|
<h1 id="hd_id3146121"><variable id="html_import"><link href="text/simpress/guide/html_import.xhp">Importing HTML Pages Into Presentations </link>
|
|
</variable></h1>
|
|
<paragraph role="paragraph" id="par_id3150750" xml-lang="en-US">You can import any text file, including text in HTML documents, into a slide.</paragraph>
|
|
<h3 id="hd_id3155443">To insert text from a file into a slide:</h3>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3146313" xml-lang="en-US">In the place where you want to insert the text,
|
|
choose <switchinline select="appl"><caseinline select="IMPRESS"><menuitem>Slide - Insert Slide from File</menuitem></caseinline>
|
|
<defaultinline><menuitem>Page - Insert Page from File</menuitem></defaultinline></switchinline>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3150207" xml-lang="en-US">Select "Text" or "HTML Document" as the <emph>File type</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3148610" xml-lang="en-US">Locate the file containing the text that you want to add, and then click <emph>Insert</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph role="paragraph" id="par_id3153915" xml-lang="en-US">If the text file contains more text than can be inserted into a single slide, you can divide the text over several slides.</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3149126" xml-lang="en-US">Double-click in the inserted text to enter edit mode.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3143228" xml-lang="en-US">Select all of the text that lies below the visible slide area and press <switchinline select="sys"><caseinline select="MAC">Command
|
|
</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+X.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3153811" xml-lang="en-US">Choose <switchinline select="appl"><caseinline select="IMPRESS"><menuitem>Slide - New Slide</menuitem></caseinline><defaultinline><menuitem>Page - New Page</menuitem></defaultinline></switchinline>, and then press <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline>+V.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="listitem" id="par_id3147297" xml-lang="en-US">Repeat steps 1 to 3 until all of the text is on slides.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<embed href="text/shared/00/00000004.xhp#related"/>
|
|
<embed href="text/simpress/guide/html_export.xhp#html_export"/>
|
|
</body>
|
|
</helpdocument>
|