Commit Graph

15 Commits

Author SHA1 Message Date
4e20b30849 tdf#163745 BASIC help pages must explicitly state types of all arguments
+ refactor and tweaks

Change-Id: I39a88a35af32aac68e8ebfe566bce0fc927ceef3
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184186
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2025-04-16 14:46:36 +02:00
71788fbef6 Mute L10n in BASIC code
Change-Id: I0e6a85285548385935eadd00e69bf2671af3d4c6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144178
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-12-15 10:46:48 +00:00
7e42394ecb tdf#152323 drop name attribute from <link> elements
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>
2022-12-07 17:39:02 +00:00
d2259c8401 silence make translations warning (emtpy string flagged for translation)
Change-Id: Ie8d188eca6b04a1e264ebe4f1abfeaa79bcba37d
2022-11-15 13:54:48 +01:00
d195123be4 Fix typo
Change-Id: I3b533183d82a707ee837cd584d3e9ed3862c2ed5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141827
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-10-25 16:47:17 +02:00
b122dcc35b tdf141474 CreateUnoListener function accepts keyword arguments
-  literals and links added to improve page legibility
-  'related to' items added
-  Multiple text clarifications and additionss
Change-Id: I0d7515783cb53f382ff2246a4a377ffb871a8284
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141578
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-10-25 16:32:42 +02:00
d55fd06206 Silence strings for l10n in sbasic/shared (Part 5)
Change-Id: I9961615c4288b3470a640ed2a4a3ec3674db7833
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126820
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-12-27 23:31:58 +01:00
9f558a9df1 Format some Basic UNO pages
Use css class 'code' for syntax of Basic statements
Use embeds for section title in pages

Change-Id: I54269e1cf995e1bc2921317bd4f4910d1c558733
Reviewed-on: https://gerrit.libreoffice.org/76264
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-26 13:30:06 +02:00
75cf318614 Deletion [Runtime] from names functions
[Runtime] was deleted
[Runtime - VBA] was replaced to [VBA]
Combination of words "runtime functions" and "runtime categiries"
was replaced to "functions" and "categiries" respectively

Change-Id: I1f03a5f2ef1697e216e144ecccbfb8942b315718
Reviewed-on: https://gerrit.libreoffice.org/49914
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Reviewed-by: Sophie Gautier <gautier.sophie@gmail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-02-22 17:17:46 +01:00
5f7e3ad041 Recover lost basic in help indentation
regression from...

commit 6614bedceadcc07ec082c5e926107f27903bda5c
Date:   Mon Jan 25 20:07:10 2016 +0100

    fix validation errors by round-trip through helpauthoring extension

with git show 6614bedceadcc07ec082c5e926107f27903bda5c | ~/recoverindent.py

import fileinput
import re
import sys

added = []
removed = []
filename = ""

def processlastfile(filename, added, removed):
    if len(added) != len(removed):
        print "BROKEN"
        sys.exit(-2)
    if len(removed):
        f = open(filename, "rw")
        linestring = open(filename, "r").read()
        start = 0
        for x in range(0, len(added)):
            if added[x] == removed[x]:
                continue
            if added[x].strip() != removed[x].strip():
                print "BROKEN"
                sys.exit(-2)
            if filename == "source/text/sbasic/shared/03080301.xhp" and x == 6:
                print "skipping special hunk", removed[x], "in source/text/sbasic/shared/03080301.xhp"
            else:
                start = linestring.find(added[x], start)
                if start == -1:
                    print "BROKEN"
                    sys.exit(-2)
                linestring = linestring[0:start] + removed[x] + linestring[start + len(added[x]):]
            start = start + len(removed[x])
        open(filename, "w").write(linestring)

for line in fileinput.input():
    if line.startswith("--- a/"):
        if filename is not "":
            processlastfile(filename, added, removed)
        added = []
        removed = []
        filename = line[6:-1]
    elif "role=\"bascode\"" in line:
        m = re.search('>(.+?)<', line)
        code = m.group(1)
        if line.startswith("-"):
            removed.append(code)
        else:
            added.append(code)

processlastfile(filename, added, removed)

which puts the code back the way it was, except for one string
which had changed and was fixed manually afterwards

Change-Id: Ic67abf36bb5d27be58a51ebbf5022830f56dcb37
2016-06-16 15:45:53 +01:00
6614bedcea fix validation errors by round-trip through helpauthoring extension
lots of missing attributes "id" and "xml-lang"
(extension patched to keep bascode tag)

Change-Id: I9c5600b6fa133a6b1062803eadb976e043db7a4a
2016-01-25 21:21:48 +01:00
33e5713fd4 Killed the last remnants of the 'lastedited' element. 2015-11-12 09:41:15 +01:00
df4d4db740 re-base on ALv2 code. Includes:
Patch contributed by Oliver Rainer-Wittmann
    i#118572 - remove ui string and help content regarding
    usage of Java Mail in Writer's Mail Merge as Java
    Mail is not used.
    http://svn.apache.org/viewvc?view=revision&revision=1197035

    Patches contributed by Herbert Duerr
    updated help text for regexp word boundaries
    http://svn.apache.org/viewvc?view=revision&revision=1228026
    improved help text for word boundary regexp expression \b
    http://svn.apache.org/viewvc?view=revision&revision=1234738

    Patches contributed by Jurgen Schmidt
    remove onlineregistration with dependencies
    http://svn.apache.org/viewvc?view=revision&revision=1240245

    Patch contributed by Regina Henschel
    Extended tips for corner and cap style
    http://svn.apache.org/viewvc?view=revision&revision=1242287

* re-enable on-line update help, remove obsolete on-line purchasing.
2012-12-13 13:02:02 +00:00
ff39701b0e format Basic code examples 2012-11-15 20:46:51 +01:00
61173c1b58 move help structure one directory up
Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc
2012-10-16 11:07:30 -05:00