Updated text/shared/guide/gallery_insert.xhp to remove references to obsolete features and update instructions that no longer work. Expanded "Related Topics" section.
Deleted:
text/shared/guide/dragdrop_fromgallery.xhp
text/swriter/guide/insert_graphic_gallery.xhp
- because they cover the same subject matter as text/shared/guide/gallery_insert.xhp.
Updated AllLangHelp_shared.mk to remove reference to text/shared/guide/dragdrop_fromgallery.xhp.
Updated AllLangHelp_swriter.mk to remove reference to text/swriter/guide/insert_graphic_gallery.xhp.
Updated auxilliary/shared.tree to redirect any references to text/shared/guide/dragdrop_fromgallery.xhp to text/shared/guide/gallery_insert.xhp.
Updated auxilliary/writer.tree to redirect any references to text/swriter/guide/insert_graphic_gallery.xhp text/shared/guide/gallery_insert.xhp.
Changed any links to text/shared/guide/dragdrop_fromgallery.xhp in the following files to links to to text/shared/guide/gallery_insert.xhp:
text/sdraw/guide/graphic_insert.xhp
text/sdraw/guide/main.xhp
text/shared/01/gallery.xhp
text/shared/guide/dragdrop.xhp
text/shared/guide/dragdrop_beamer.xhp
text/shared/guide/dragdrop_gallery.xhp
text/shared/guide/dragdrop_graphic.xhp
text/shared/guide/dragdrop_table.xhp
text/shared/guide/main.xhp
text/swriter/guide/dragdroptext.xhp
Changed any links to text/swriter/guide/insert_graphic_gallery.xhp in the following files to links to to text/shared/guide/gallery_insert.xhp:
text/sdraw/guide/graphic_insert.xhp
text/shared/guide/insert_bitmap.xhp
text/shared/guide/insert_graphic_drawit.xhp
text/swriter/guide/insert_graphic.xhp
text/swriter/guide/insert_graphic_dialog.xhp
text/swriter/guide/insert_graphic_fromchart.xhp
text/swriter/guide/insert_graphic_fromdraw.xhp
text/swriter/guide/insert_graphic_scan.xhp
text/swriter/guide/main.xhp
Updated text/shared/01/gallery.xhp to update obsolete instructions.
Added "How to Get" instructions for accessing the Gallery with a keyboard shortcut.
Added additional keywords to make the page easier to find.
Added additional HID bookmarks so that pressing F1 will now open the relevant help page for context menu items in the Gallery.
Reorganinzed the article to improve clarity including adding additional headings.
Added embed links for additional menu options to provide a more thorough explanation of the Gallery feature.
Added an explanation of the "Title" option in the context menu.
Removed the "hidden" tag from the description of the "Detailed view" and "Icon view" options.
Updated the description of the Insert function in text/shared/00/00000010.xhp to reflect how inserting an object from the Gallery currently works. Changed "Background" to "Insert as Background" to better reflect current menu options.
Change-Id: Ib510289436a449a1581b2f9b6deacea3f5cfe37c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/165620
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
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>