[Libreoffice-commits] help.git: Changes to 'refs/changes/89/1989/2'
___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] help.git: Changes to 'refs/changes/89/1989/1'
___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] Changes to 'refs/tags/sdremote-1.0.1'
Tag 'sdremote-1.0.1' created by Thorsten Behrens tbehr...@suse.com at 2013-02-11 22:46 -0800 Tag sdremote-1.0.1 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAABAgAGBQJRGXS7AAoJEPQ0oe+v7q6jdOUP/RDK+W3TuQl+ICR0WFmrLszJ /szYQOazKyTefD10RaxvshmLjFl7Uw+wRwMsh1kmhkbVFBPbIBvtyY0nV/f5pujm 5hC+bKTeWixV3ETmvoZH9rgOr4XNtAj7tU86mpEP3RX4qRbLwGegnHHWkvXEeOvq wFRxQXwNVv6b2EETW2415AO3AG7A54c4UDhZKjOmrz0bhDhoQRavE+p/jFgZoa9p E44XelUqMTVgzD1afKolLpeMuzIS+IfHpuyCvvoVhrE6TCiSadZUnchtoM8dZo+c yiKMQypeOS4dS4fNwnty8baPTqeVOrGq2TpcDpSw02cuN7oIz5tqOID7GXLdEB5z Z//cC1a4ktV5ZiyXf2UaOI3pzkFqqAFsYlzVUjp7rRwNR4nyrmd95z+ev6hWvFft AvXX3W4ruO1VDtKniyGiJm/xC0w0xT6sX8A58sQW+xW15RS3IKgIrg38jcyIVzmL yRhmzYBuGtS3bbvj3byUnyu0oTI4uy5eWzPVowkEN0TrTlOZJcdh/uyVb7kKXwNQ QwIOeBmKGTPqh9+pIBJamdLeeSnYafklMtXRjrbLGnfRrD5EuYQyuT4xoMbJBsif 7Swv/jBsX7yAcUMfMNJezdENHpg7JmHsNQVAl3xpzZ9E9y76puJYLk4YvOOGjBmx TudQGYMICig5RIpw6mZl =8qrB -END PGP SIGNATURE- Changes since libreoffice-4-0-branch-point-12: --- 0 files changed --- ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] Changes to 'refs/tags/sdremote-1.0.0'
Tag 'sdremote-1.0.0' created by Thorsten Behrens tbehr...@suse.com at 2013-02-07 16:52 -0800 Tag sdremote-1.0.0 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAABAgAGBQJRE9viAAoJEPQ0oe+v7q6jwFcP/1awuycwlOnPTCZo8iFVrPd/ dZL9NA8Zky94YvhjIgZc2LYyy0330VJCRffSNrfe+KHSstZSO/hRsN8YEuL3Sylq MOiqI3NkETpCHxlvdkZMXQzdwFk1CBfyK1uZbCcTSYob6zL+Ud9XgyxKSGsozcn1 MyW8JFt3EVHVgm8TGClfmn70KaPhHGvT2Mpz5IpFcorjTTz3to6AJjR/tF+VRZr2 qHt1PGU60AT82sGvhafABKyqouJovg/4Ee+MFQ92xwIYLczA1sGjaO+TW5Qy535q wMyFygBTUEM1gu0tzyMAnqYHxhiqWN4uWlpxtOf5VHMBHRaofJF0sJ8WnAPf5SAO +Bna+PNtXy2nkkUMJrpS/4YzJYk2RooC9YTTM7rF12HTItI3gsgwRxaYvbtx5/bN rKJwsK/PX5KV++h9aETZniitvrXhiXGFByuJhODcuxgC/9THoc+qbDZwuqZoals0 PJFdQRjKgOJx7GsAK34260HgRZLxgmtvzgiWDolJYQRE53ACkTKdu6iuQU731uwG 9AhJrywXTJPhNBr4GfWa1ToSjpUV1fF1bGffoRJRCHEhh8Xu6qJhTQCdGzynMEA3 r4/yATkjI6xnVg95ifsV5eaEBZvhEdyCpIWa/lm8KFtbfOMtJbT+NQ6+lLALwZkg Q28DuwEyMf/7Nablw8nZ =t+pJ -END PGP SIGNATURE- Changes since libreoffice-4-0-branch-point-12: --- 0 files changed --- ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] Changes to 'refs/tags/sdremote-1.0.2'
Tag 'sdremote-1.0.2' created by Thorsten Behrens tbehr...@suse.com at 2013-02-11 23:50 -0800 Tag sdremote-1.0.2 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAABAgAGBQJRGYO1AAoJEPQ0oe+v7q6jT5kQAKOx61MysXqEXJoswxTaGXX3 Xnw4wNs+xEky2r+614StuEG75bNWLQjY+8YjtRXLnmZt1bCLCbwngZ7PHcfAJuNF MgFYIMVmlf4t1h+om3AUBQ9++17ZDqbg7ALyg3p+yo50zfM/dVfGmhbIv1Mm1xHY cQT72PdOTOEcX5JglIpUZra4S/HJxbMe9ooAnqt9hu0W7js74uJRg4NweWjJYokK mQVD60jVz+H+UVWuufDnDdavB+zX6tcegByizM8xPYnWmH+HzTV4as/JG1VekRb1 pqNrvToFWsqyefgua+nZasecTmCVheNN5mxfhp4+gMf7hZ3mMPF/ix+EH5sXQ5Lq dFGP2pzyjrC6GbcL4DZycVw8akO40fgjCIfrrZJwc60jlPX/0gDOIjFgcE6UfGC0 zjgSpxlZDAZhi1rmQxgqLybWb2bKS0hORm1ysQfgHiF8SnMaPCO/Rf0i8cDUaqzb AH/MlLjW0vrqrEu7PENFgxLo79wm5ojsA2TPeRlF0x41IEPcw03XH5nyKT0zjCld PsHMRQVQeufu15FFiQt9V5Iez4E1eQimcdmqOTfn/a30dblbZ5ISspNXI1r+ZE1z X58uPeSK5RvALXWNd33GONROrk9b9bKjNvwJFvO8fRNS3wWEQFkd3GXdtPwYLQmd hfyB50OCjPHYg0KwDUUj =W6Ln -END PGP SIGNATURE- Changes since libreoffice-4-0-branch-point-12: --- 0 files changed --- ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] help.git: Branch 'libreoffice-4-0' - help-to-wiki.py to-wiki/wikiconv2.py
help-to-wiki.py |8 +- to-wiki/wikiconv2.py | 151 --- 2 files changed, 112 insertions(+), 47 deletions(-) New commits: commit 7dded42472968783f5c90a0aa9e497ee3dfb247f Author: Dávid Vastag davewwpub...@gmail.com Date: Mon Feb 4 22:05:01 2013 +0100 help-to-wiki.py now uses .po files as source of translations. Plus added erro handling Reviewed-by: Jan Holesovsky ke...@suse.cz Tested-by: Jan Holesovsky ke...@suse.cz Signed-off-by: Andras Timar ati...@suse.com diff --git a/help-to-wiki.py b/help-to-wiki.py index 4a15f95..0ee17ba 100755 --- a/help-to-wiki.py +++ b/help-to-wiki.py @@ -95,13 +95,13 @@ print Generating the titles... os.system( python to-wiki/getalltitles.py source/text alltitles.csv ) try: -sdf_path = args[0] +po_path = args[0] except: -sdf_path = '../../translations/unxlngx6.pro/misc/sdf-l10n' -sys.stderr.write('Path to the .sdf files not provided, using %s\n'% sdf_path) +po_path = '../translations/source' +sys.stderr.write('Path to the .po files not provided, using %s\n'% po_path) # do the work for lang in langs: -wikiconv2.convert(generate_redirects, lang, '%s/%s.sdf'% (sdf_path, lang)) +wikiconv2.convert(generate_redirects, lang, '%s/%s/helpcontent2/source'% (po_path, lang)) # vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py index be968cb..0e3bb5b 100755 --- a/to-wiki/wikiconv2.py +++ b/to-wiki/wikiconv2.py @@ -7,7 +7,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import os, sys, thread, threading, time +import os, sys, thread, threading, time, re, copy import xml.parsers.expat import codecs from threading import Thread @@ -179,31 +179,79 @@ def escape_equals_sign(text): return t -def load_localization_data(sdf_file): -global localization_data -localization_data = {} -try: -file = codecs.open(sdf_file, r, utf-8) -except: -sys.stderr.write('Error: Cannot open .sdf file %s\n'% sdf_file) -return False +def xopen(path, mode, encoding): +Wrapper around open() to support both python2 and python3. +if sys.version_info = (3,): +return open(path, mode, encoding=encoding) +else: +return open(path, mode) + +# used by ecape_help_text +helptagre = re.compile('''[/]??[a-z_\-]+?(?:| +[a-zA-Z]+?=[]??.*?) *[/]??''') + +def escape_help_text(text): +Escapes the help text as it would be in an SDF file. + +for tag in helptagre.findall(text): +escapethistag = False +for escape_tag in [ahelp, link, item, emph, defaultinline, switchinline, caseinline, variable, bookmark_value, image, embedvar, alt]: +if tag.startswith(%s % escape_tag) or tag == /%s % escape_tag: +escapethistag = True +if tag in [br/, help-id-missing/]: +escapethistag = True +if escapethistag: +escaped_tag = (\\ + tag[1:-1] + \\) +text = text.replace(tag, escaped_tag) +return text -for line in file: -line = line.strip() -if line[0] == '#': -continue -spl = line.split(\t) - -# the form of the key is like -# source/text/shared/explorer/database/02010100.xhp#hd_id3149233 -# otherwise we are getting duplicates -key = '%s#%s'% (spl[1].replace('\\', '/'), spl[4]) -try: -localization_data[key] = spl[10] -except: -sys.stderr.write('Warning: Ignored line %s\n'% line.encode('utf-8')) -file.close() +def load_localization_data(po_root): +global localization_data +localization_data = {} +for root, dirs, files in os.walk(po_root): +for file in files: +if re.search(r'\.po$', file) == None: +continue +path = %s/%s % (root, file) +sock = xopen(path, r, encoding='utf-8') +hashKey = None +transCollecting = False +trans = +it = iter(sock) +line = next(it, None) +while line != None: +line=line.decode(utf-8) +if line.startswith('msgctxt '): # constructing the hashKey +key=[] +allGood = True +i=0 +while i2 and allGood: +msgctxt_line = next(it, None); +if msgctxt_line != None and msgctxt_line.strip().startswith(''): +key.append( msgctxt_line[1:-4] ) #-4 cuts \\n\n from the end of the line +i=i+1 +else: +allGood = False +if i==2: #hash key is allowed to be constructed +hashKey = '#'.join( (re.sub(r'^.*helpcontent2/source/', r'source/', path[:-3]) + '/' + key[0] , key[1]) ) +
[Libreoffice-commits] core.git: helpcontent2
helpcontent2 |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit bdfd8de57bf5767ce5c179a5e8705c7587f7b326 Author: Dávid Vastag davewwpub...@gmail.com Date: Wed Feb 6 19:10:25 2013 +0100 Updated core Project: help ba8241b6b1ddd1db8f597152b440c947a8702cd6 diff --git a/helpcontent2 b/helpcontent2 index 46d83d5..ba8241b 16 --- a/helpcontent2 +++ b/helpcontent2 @@ -1 +1 @@ -Subproject commit 46d83d5e6cc036c9ec5cad7d3d0d285d6b04dc33 +Subproject commit ba8241b6b1ddd1db8f597152b440c947a8702cd6 ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - helpcontent2
helpcontent2 |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 5cf8fc6fd2de28c218ad55d9b2e699ad932933f0 Author: Dávid Vastag davewwpub...@gmail.com Date: Mon Feb 4 22:05:01 2013 +0100 Updated core Project: help 7dded42472968783f5c90a0aa9e497ee3dfb247f diff --git a/helpcontent2 b/helpcontent2 index fab8b3e..7dded42 16 --- a/helpcontent2 +++ b/helpcontent2 @@ -1 +1 @@ -Subproject commit fab8b3ed91a4b24d2a06832929ecad3f9ba65630 +Subproject commit 7dded42472968783f5c90a0aa9e497ee3dfb247f ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: helpcontent2
helpcontent2 |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit be908eb4fa40e059278f36ba79389829caea7e31 Author: Dávid Vastag davewwpub...@gmail.com Date: Mon Feb 4 22:05:01 2013 +0100 Updated core Project: help 683680a26c9b1327204960c0a5a56229c8232bd8 help-to-wiki.py now uses .po files as source of translations. Change-Id: I1f24f6a76781d651228bd5571f8f32fe05c0ecb9 Reviewed-on: https://gerrit.libreoffice.org/1989 Reviewed-by: Jan Holesovsky ke...@suse.cz Tested-by: Jan Holesovsky ke...@suse.cz diff --git a/helpcontent2 b/helpcontent2 index 5df11836..683680a 16 --- a/helpcontent2 +++ b/helpcontent2 @@ -1 +1 @@ -Subproject commit 5df11836790b705261ba5cc72f3e52a4569472a4 +Subproject commit 683680a26c9b1327204960c0a5a56229c8232bd8 ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
Licence statement
Hello Here is a statement about my contributions to the LibreOffice project: All of my past and future contributions to LibreOffice may be licensed under the MPL/LGPLv3+ dual license. Regards, Dávid Vastag dave.wwpub...@gmail.com ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] stucked with a bug
Hi! I've been having fun with Bug 33794 https://bugs.freedesktop.org/show_bug.cgi?id=33794 for a while. In some translations the Open button's text on LibreOffice start window is overlapped by the small triangle symbol on the right of the open button which is for recent files popup menu. The problem is that the width of the symbol on the open button is not taken into account at calculation of overall button width. Those buttons on the start window come from vcl module (ImageButton, MenuButton. In the function which lays them out they are passed as PushButton). To solve this issue I have to find a way somehow to extract dynamically this symbol width information in code. I figured out that I can get it by functions Button::ImplGetSymbolRect().getWidth() but unfortunately it gives a kind of uninitialized value ( -32767 ) during the whole creation of start window I don't know why. (If I call these functions after the the start window showed up, they give the right information I've checked it.) I've got stucked at this point. I would really appreciate some help. -- - The code of the start window is implemented in the backingwindow.hxx/cxx in framework module. - Each button is layed out in BackingWindow::initControls() by BackingWindow::layoutButton() function. -- Thank's, Dávid ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice