From cdea8177d1053543e285c4a382edb9099792078a Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 8 Nov 2012 12:46:21 +0100 Subject: LibreLogo fixes (default properties file, help, tooltip) Change-Id: Id9f878c0cf59e75fbd5e2f056e48f0d6a7da108c --- librelogo/source/LibreLogo/LibreLogo.py | 2 +- librelogo/source/help/en-US/LibreLogo.xhp | 6 +++--- .../source/registry/data/org/openoffice/Office/Addons.xcu | 12 +----------- 3 files changed, 5 insertions(+), 15 deletions(-) (limited to 'librelogo') diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index acea6dc90d20..fd33a53ceffe 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1262,7 +1262,7 @@ def __compil__(s): __loadlang__(_.lng, __l12n__(_.lng)) except: __trace__() - _.lng = 'en' + _.lng = 'en_US' if not _.lng in __comp__: __loadlang__(_.lng, __l12n__(_.lng)) diff --git a/librelogo/source/help/en-US/LibreLogo.xhp b/librelogo/source/help/en-US/LibreLogo.xhp index 0d21a8664fef..2a4bd87ed453 100644 --- a/librelogo/source/help/en-US/LibreLogo.xhp +++ b/librelogo/source/help/en-US/LibreLogo.xhp @@ -74,12 +74,12 @@ Other features of LibreLogo - The colon is optional before the variables (like in the Berkeley Logo) + The colon is optional before the variable names.  TO triangle size
   REPEAT 3 [ FORWARD size LEFT 120 ]
 END
- String notation supports also orthographical and Python syntax: -  PRINT "word" ; original Logo syntax
 PRINT “Arbitrary text.” ; orthography, Writer
 PRINT 'Arbitrary text.' ; Python syntax
+ String notation supports also orthographical and Python syntax. +  PRINT "word ; original Logo syntax
 PRINT “Arbitrary text.” ; orthography, Writer
 PRINT 'Arbitrary text.' ; Python syntax
Python list and string handling diff --git a/librelogo/source/registry/data/org/openoffice/Office/Addons.xcu b/librelogo/source/registry/data/org/openoffice/Office/Addons.xcu index 0220f78a5dd3..3f608d7302a1 100644 --- a/librelogo/source/registry/data/org/openoffice/Office/Addons.xcu +++ b/librelogo/source/registry/data/org/openoffice/Office/Addons.xcu @@ -130,17 +130,7 @@ vnd.sun.star.script:librelogo.oxt|LibreLogo|LibreLogo.py$commandline?language=Python&location=user:uno_packages - FORWARD (fd), BACK (bk), LEFT (lt), RIGHT (rt) • fd 72, bk 1cm + 1in + 1", lt 90, rt 1.5h -REPEAT num [ commands ], REPCOUNT • repeat 100 [ fd repcount lt 91 ] -PENUP (pu), PENDOWN (pd), FILL, CLOSE, HOME, CLEARSCREEN (cs), PENSIZE (ps 5) -PENCOLOR (pc), FILLCOLOR (fc) • pc “red”, pc 0xff0000, fc [255, 0, 0], fc any -POSITION (pos), HEADING (seth) • pos [0, 0], pos pagesize, seth 60, seth [0, 0] -CIRCLE, ELLIPSE, BOX, RECTANGLE • circle 10 ellipse [5, 9] box 10 rectangle [5, 2] -LABEL, TEXT, PRINT • label “Some text”, circle 200 text “center of the actual shape” -FONTFAMILY “Font” FONTSIZE 9 FONTCOLOR “red” FONTWEIGHT “bold” -TO name arguments ... END, TO name arguments, OUTPUT return_value, END -RANDOM, SQRT, INT, COUNT, ABS, SIN, COS, INPUT • ps random 100, print count “string” -PICTURE (pic) [ ... ] • group different shapes: pic [ fd 100 circle 50 ] + Logo command line (press F1 here for help) _self -- cgit