summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03030116.xhp
AgeCommit message (Collapse)Author
2023-03-16convert paragraphs with role="heading" & childelements to → h<level>Christian Lohmaier
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>
2023-03-16convert plain paragraphs with role="heading" → h<level>Christian Lohmaier
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>
2022-12-07tdf#152323 drop name attribute from <link> elementsIlmari Lauhakangas
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>
2021-12-27Re-enable translation of strings in sbasic/sharedRafael Lima
This patch partially reverts the following two commits: - bba53dc2eb06941ab4e9b9c22722b22c19cd3698 - fa7fd622849d9e31d3f27e3762b0a0e578838cc0 The reason is that I wrongly silenced a few strings used in syntax declarations that should be translatable. Change-Id: I9929f2c43a611598450a05433a78ed88824d0935 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/127482 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-12-11Silence strings for l10n in sbasic/shared (Part 2)Rafael Lima
Change-Id: Ia14a0773d1dc13eaf8737eca3f68594eb1bb8054 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126670 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-02-22Deletion [Runtime] from names functionstagezi
[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>
2016-06-16Recover lost basic in help indentationCaolán McNamara
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-01-25fix validation errors by round-trip through helpauthoring extensionChristian Lohmaier
lots of missing attributes "id" and "xml-lang" (extension patched to keep bascode tag) Change-Id: I9c5600b6fa133a6b1062803eadb976e043db7a4a
2015-11-12The 'lastedited' element is useless, we have git.Jan Holesovsky
2013-11-05basic code not localisableLionel Elie Mamane
Change-Id: Ifcc4985afac1f62787d317352bdb45a490d71963
2013-11-05fixup examples of CDate(From|To)Uno(Date|Time|DateTime)Lionel Elie Mamane
Change-Id: I547317d52bf08bcfb0954267e25ce5f2881d1c75
2013-11-05janitorial: space outside of emphLionel Elie Mamane
Change-Id: I624e4d61a7482e316297feb78f30b20b57ce39b7
2013-11-03missing spaces in new help textAndras Timar
Change-Id: Idd049b01ac7fd83bc49d907788924a28fc50b7cd
2013-09-17documentation for new UNO Date/Time/DateTime struct <-> Basic Time conversionsLionel Elie Mamane
Change-Id: I8679534affa1ac5ee22393189188ff1ac09aa0f5 Reviewed-on: https://gerrit.libreoffice.org/5899 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>