Change-Id: I88d2ce0061419a73d62bb4200b67ce09722d8df6
Note: F1 on context menus only work with "gen" and "win" at the moment. For kf5 and gtk3 we still need to fix bug 156376.
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154772
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
and also drop the language that was changed to implied previously/defaults to
en-US unless specified.
This change doesn't affect translations, only the content of the
paragraph/headings is extracted.
done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>.*?)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
and manually undoing the one that uses <sup>in body that's not valid
according to the dtd in the h tags.
Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
i.e. without child elements and also drop the language that was changed
to implied in the dtd previously/defaults to en-US unless specified.
This change doesn't affect translations, only the content of the
paragraph/headings is extracted.
done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)
Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
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>
+ Refactor, simplification of <switch>
+ Removed duplicated hid bookmark for Contents
+ Update icons and <alt> text
+ added some of the comments of tdf#178755
Change-Id: Ifaba80d212828e47d99275a9b0a1681eb3bc3430
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/136105
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
tdf#149018 changed "Object" to "Ole Object" in the Insert menu
and the Edit menu. This patch updates the relevant command
sequences, and uses <menuitem> on changed sequences.
Also updates the help pages for OLE Objects, including
refactoring to <h1>,<h2>, adding variables or sections for
embedding, and changing some items to embeds.
Change-Id: I6931305d3576458f3f0dbec59a4ecbe00cdcf68a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135009
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
The content of the guide page "Defining Line Ends"
(shared/guide/lineend_define.xhp) has not been updated since
its initial checkin in 2004. This patch updates the relevant
menu commands, aligns the description with the current UI,
adds a little more precision in what gets added as an arrowhead,
and refactor to <h1> and <menuitem>.
Also, add a <relatedtopics> section to the "Arrow Styles" help page
(shared/01/05200300.xhp) with an embedded link to this guide page.
Change-Id: I3e619aadddb65b77cc7216074d18c4eb138b1774
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135393
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>