mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-04-05 15:57:35 +00:00
更新windows内置office目录名, 适配jodconverter
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// Change the case of a selection, or current word from upper case,
|
||||
// to first char upper case, to all lower case to upper case...
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.frame.XModel;
|
||||
import com.sun.star.view.XSelectionSupplier;
|
||||
import com.sun.star.container.XIndexAccess;
|
||||
import com.sun.star.text.XText;
|
||||
import com.sun.star.text.XTextRange;
|
||||
import com.sun.star.text.XWordCursor;
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
|
||||
// return the new string based on the string passed in
|
||||
String getNewString( theString ) {
|
||||
String newString;
|
||||
if(theString==null || theString.length()==0) {
|
||||
return newString;
|
||||
}
|
||||
// should we tokenize on "."?
|
||||
if(Character.isUpperCase(theString.charAt(0)) && theString.length()>=2 && Character.isUpperCase(theString.charAt(1))) { // first two chars are UC => first UC, rest LC
|
||||
newString=theString.substring(0,1).toUpperCase()+theString.substring(1).toLowerCase();
|
||||
} else if (Character.isUpperCase(theString.charAt(0))) { // first char UC => all to LC
|
||||
newString=theString.toLowerCase();
|
||||
} else { // all to UC.
|
||||
newString=theString.toUpperCase();
|
||||
}
|
||||
return newString;
|
||||
}
|
||||
|
||||
//the method that does the work
|
||||
void capitalise() {
|
||||
|
||||
// get the number of regions selected
|
||||
count = xIndexAccess.getCount();
|
||||
if(count>=1) { //ie we have a selection
|
||||
for(i=0;i<count;i++) {
|
||||
// get the i-th region selected
|
||||
xTextRange = (XTextRange)
|
||||
UnoRuntime.queryInterface(XTextRange.class, xIndexAccess.getByIndex(i));
|
||||
System.out.println("string: "+xTextRange.getString());
|
||||
// get the selected string
|
||||
theString = xTextRange.getString();
|
||||
if(theString.length()==0) {
|
||||
// sadly we can have a selection where nothing is selected
|
||||
// in this case we get the XWordCursor and make a selection!
|
||||
xText = (XText)
|
||||
UnoRuntime.queryInterface(XText.class, xTextRange.getText());
|
||||
xWordCursor = (XWordCursor)
|
||||
UnoRuntime.queryInterface(XWordCursor.class, xText.createTextCursorByRange(xTextRange));
|
||||
// move the Word cursor to the start of the word if it's not
|
||||
// already there
|
||||
if(!xWordCursor.isStartOfWord()) {
|
||||
xWordCursor.gotoStartOfWord(false);
|
||||
}
|
||||
// move the cursor to the next word, selecting all chars
|
||||
// in between
|
||||
xWordCursor.gotoNextWord(true);
|
||||
// get the selected string
|
||||
theString = xWordCursor.getString();
|
||||
// get the new string
|
||||
newString = getNewString(theString);
|
||||
if(newString!=null) {
|
||||
// set the new string
|
||||
xWordCursor.setString(newString);
|
||||
// keep the current selection
|
||||
xSelectionSupplier.select(xWordCursor);
|
||||
}
|
||||
} else {
|
||||
newString = getNewString( theString );
|
||||
if(newString!=null) {
|
||||
// set the new string
|
||||
xTextRange.setString(newString);
|
||||
// keep the current selection
|
||||
xSelectionSupplier.select(xTextRange);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The XSCRIPTCONTEXT variable is of type XScriptContext and is available to
|
||||
// all BeanShell scripts executed by the Script Framework
|
||||
xModel = (XModel)
|
||||
UnoRuntime.queryInterface(XModel.class, XSCRIPTCONTEXT.getDocument());
|
||||
//the writer controller impl supports the css.view.XSelectionSupplier interface
|
||||
xSelectionSupplier = (XSelectionSupplier)
|
||||
UnoRuntime.queryInterface(XSelectionSupplier.class, xModel.getCurrentController());
|
||||
//see section 7.5.1 of developers' guide
|
||||
xIndexAccess = (XIndexAccess)
|
||||
UnoRuntime.queryInterface(XIndexAccess.class, xSelectionSupplier.getSelection());
|
||||
|
||||
//call the method that does the work
|
||||
capitalise();
|
||||
return 0;
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="BeanShell" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="Capitalise"/>
|
||||
<description>
|
||||
Change the case of a selection, or current word from upper case, to first char upper case, to all lower case to upper case...
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="capitalise.bsh"/>
|
||||
<logicalname value="Capitalise.BeanShell"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// Hello World in BeanShell
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.text.XTextDocument;
|
||||
import com.sun.star.text.XText;
|
||||
import com.sun.star.text.XTextRange;
|
||||
|
||||
// get the document from the scripting context which is made available to all
|
||||
// scripts
|
||||
oDoc = XSCRIPTCONTEXT.getDocument();
|
||||
//get the XTextDocument interface
|
||||
xTextDoc = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,oDoc);
|
||||
//get the XText interface
|
||||
xText = xTextDoc.getText();
|
||||
// get an (empty) XTextRange at the end of the document
|
||||
xTextRange = xText.getEnd();
|
||||
// set the string
|
||||
xTextRange.setString( "Hello World (in BeanShell)" );
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="BeanShell" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="Hello World"/>
|
||||
<description>
|
||||
Adds the string "Hello World" into the current text doc.
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="helloworld.bsh"/>
|
||||
<logicalname value="HelloWorld.BeanShell"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// this code is bound to the events generated by the buttons in the dialog
|
||||
// it will close the dialog or find and highlight the text entered in the
|
||||
// dialog (depending on the button pressed)
|
||||
import com.sun.star.uno.*;
|
||||
import com.sun.star.awt.*;
|
||||
import com.sun.star.lang.*;
|
||||
import com.sun.star.beans.*;
|
||||
import com.sun.star.util.*;
|
||||
import com.sun.star.script.framework.browse.DialogFactory;
|
||||
|
||||
// Get the ActionEvent object from the ARGUMENTS list
|
||||
ActionEvent event = (ActionEvent) ARGUMENTS[0];
|
||||
|
||||
// Each argument is of type Any so we must use the AnyConverter class to
|
||||
// convert it into the interface or primitive type we expect
|
||||
XButton button = (XButton)AnyConverter.toObject(
|
||||
new Type(XButton.class), event.Source);
|
||||
|
||||
// We can now query for the model of the button and get its properties
|
||||
XControl control = (XControl)UnoRuntime.queryInterface(XControl.class, button);
|
||||
XControlModel cmodel = control.getModel();
|
||||
XPropertySet pset = (XPropertySet)UnoRuntime.queryInterface(
|
||||
XPropertySet.class, cmodel);
|
||||
|
||||
if (pset.getPropertyValue("Label").equals("Exit"))
|
||||
{
|
||||
// We can get the XDialog in which this control appears by calling
|
||||
// getContext() on the XControl interface
|
||||
XDialog xDialog = (XDialog)UnoRuntime.queryInterface(
|
||||
XDialog.class, control.getContext());
|
||||
|
||||
// Close the dialog
|
||||
xDialog.endExecute();
|
||||
}
|
||||
else
|
||||
{
|
||||
// We can get the list of controls for this dialog by calling
|
||||
// getContext() on the XControl interface of the button
|
||||
XControlContainer controls = (XControlContainer)UnoRuntime.queryInterface(
|
||||
XControlContainer.class, control.getContext());
|
||||
|
||||
// Now get the text field control from the list
|
||||
XTextComponent textField = (XTextComponent)
|
||||
UnoRuntime.queryInterface(
|
||||
XTextComponent.class, controls.getControl("HighlightTextField"));
|
||||
|
||||
String searchKey = textField.getText();
|
||||
|
||||
// highlight the text in red
|
||||
java.awt.Color cRed = new java.awt.Color(255, 0, 0);
|
||||
int red = cRed.getRGB();
|
||||
|
||||
XReplaceable replaceable = (XReplaceable)
|
||||
UnoRuntime.queryInterface(XReplaceable.class, XSCRIPTCONTEXT.getDocument());
|
||||
|
||||
XReplaceDescriptor descriptor =
|
||||
(XReplaceDescriptor) replaceable.createReplaceDescriptor();
|
||||
|
||||
// Gets a XPropertyReplace object for altering the properties
|
||||
// of the replaced text
|
||||
XPropertyReplace xPropertyReplace = (XPropertyReplace)
|
||||
UnoRuntime.queryInterface(XPropertyReplace.class, descriptor);
|
||||
|
||||
// Sets the replaced text property fontweight value to Bold
|
||||
PropertyValue wv = new PropertyValue("CharWeight", -1,
|
||||
new Float(com.sun.star.awt.FontWeight.BOLD),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Sets the replaced text property color value to RGB parameter
|
||||
PropertyValue cv = new PropertyValue("CharColor", -1,
|
||||
new Integer(red),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Apply the properties
|
||||
PropertyValue[] props = new PropertyValue[] { cv, wv };
|
||||
|
||||
try {
|
||||
xPropertyReplace.setReplaceAttributes(props);
|
||||
|
||||
// Only matches whole words and case sensitive
|
||||
descriptor.setPropertyValue(
|
||||
"SearchCaseSensitive", new Boolean(true));
|
||||
descriptor.setPropertyValue("SearchWords", new Boolean(true));
|
||||
}
|
||||
catch (com.sun.star.beans.UnknownPropertyException upe) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
}
|
||||
catch (com.sun.star.beans.PropertyVetoException pve) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
}
|
||||
catch (com.sun.star.lang.WrappedTargetException wte) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
}
|
||||
|
||||
// Replaces all instances of searchKey with new Text properties
|
||||
// and gets the number of instances of the searchKey
|
||||
descriptor.setSearchString(searchKey);
|
||||
descriptor.setReplaceString(searchKey);
|
||||
replaceable.replaceAll(descriptor);
|
||||
}
|
||||
|
||||
// BeanShell scripts in LibreOffice should always return 0
|
||||
return 0;
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// this script serves as an example of how to launch a Basic Dialog
|
||||
// from a script
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
import com.sun.star.lang.XMultiComponentFactory;
|
||||
import com.sun.star.lang.EventObject;
|
||||
import com.sun.star.uno.Type;
|
||||
import com.sun.star.uno.AnyConverter;
|
||||
import com.sun.star.text.XTextDocument;
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
import com.sun.star.script.XLibraryContainer;
|
||||
import com.sun.star.awt.*;
|
||||
import com.sun.star.util.*;
|
||||
|
||||
boolean tryLoadingLibrary( xmcf, context, name )
|
||||
{
|
||||
try
|
||||
{
|
||||
obj = xmcf.createInstanceWithContext(
|
||||
"com.sun.star.script.Application" + name + "LibraryContainer",
|
||||
context.getComponentContext());
|
||||
|
||||
xLibraryContainer = (XLibraryContainer)
|
||||
UnoRuntime.queryInterface(XLibraryContainer.class, obj);
|
||||
|
||||
System.err.println("Got XLibraryContainer");
|
||||
|
||||
serviceObj = context.getComponentContext().getValueByName(
|
||||
"/singletons/com.sun.star.util.theMacroExpander");
|
||||
|
||||
xme = (XMacroExpander) AnyConverter.toObject(
|
||||
new Type(XMacroExpander.class), serviceObj);
|
||||
|
||||
bootstrapName = "bootstraprc";
|
||||
if (System.getProperty("os.name").startsWith("Windows"))
|
||||
{
|
||||
bootstrapName = "bootstrap.ini";
|
||||
}
|
||||
|
||||
libURL = xme.expandMacros(
|
||||
"$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/basic/ScriptBindingLibrary/" +
|
||||
name.toLowerCase() + ".xlb/");
|
||||
|
||||
System.err.println("libURL is: " + libURL);
|
||||
|
||||
xLibraryContainer.createLibraryLink(
|
||||
"ScriptBindingLibrary", libURL, false);
|
||||
|
||||
System.err.println("liblink created");
|
||||
|
||||
}
|
||||
catch (com.sun.star.uno.Exception e)
|
||||
{
|
||||
System.err.println("Got an exception loading lib: " + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// get the XMultiComponentFactory from the XSCRIPTCONTEXT
|
||||
XMultiComponentFactory xmcf =
|
||||
XSCRIPTCONTEXT.getComponentContext().getServiceManager();
|
||||
|
||||
Object[] args = new Object[1];
|
||||
args[0] = XSCRIPTCONTEXT.getDocument();
|
||||
|
||||
Object obj;
|
||||
try {
|
||||
// try to create an instance of the DialogProvider
|
||||
obj = xmcf.createInstanceWithArgumentsAndContext(
|
||||
"com.sun.star.awt.DialogProvider", args,
|
||||
XSCRIPTCONTEXT.getComponentContext());
|
||||
/*
|
||||
obj = xmcf.createInstanceWithContext(
|
||||
"com.sun.star.awt.DialogProvider",
|
||||
XSCRIPTCONTEXT.getComponentContext());
|
||||
*/
|
||||
}
|
||||
catch (com.sun.star.uno.Exception e) {
|
||||
System.err.println("Error getting DialogProvider object");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// get the XDialogProvider interface from the object created above
|
||||
XDialogProvider xDialogProvider = (XDialogProvider)
|
||||
UnoRuntime.queryInterface(XDialogProvider.class, obj);
|
||||
|
||||
System.err.println("Got DialogProvider, now get dialog");
|
||||
|
||||
try {
|
||||
// try to create the Highlight dialog (found in the ScriptBindingLibrary)
|
||||
findDialog = xDialogProvider.createDialog("vnd.sun.star.script:" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
if( findDialog == null )
|
||||
{
|
||||
if (tryLoadingLibrary(xmcf, XSCRIPTCONTEXT, "Dialog") == false ||
|
||||
tryLoadingLibrary(xmcf, XSCRIPTCONTEXT, "Script") == false)
|
||||
{
|
||||
System.err.println("Error loading ScriptBindingLibrary");
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// try to create the Highlight dialog (found in the ScriptBindingLibrary)
|
||||
findDialog = xDialogProvider.createDialog("vnd.sun.star.script:" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (java.lang.Exception e) {
|
||||
System.err.println("Got exception on first creating dialog: " +
|
||||
e.getMessage());
|
||||
}
|
||||
|
||||
// execute the dialog in a new thread (so that this script can finish)
|
||||
Thread t = new Thread() {
|
||||
public void run() {
|
||||
findDialog.execute();
|
||||
}
|
||||
};
|
||||
t.start();
|
||||
|
||||
return 0;
|
||||
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.util.XReplaceable;
|
||||
import com.sun.star.util.XReplaceDescriptor;
|
||||
import com.sun.star.util.XPropertyReplace;
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
import com.sun.star.text.XTextDocument;
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
|
||||
int replaceText(searchKey, color, bold) {
|
||||
|
||||
result = 0;
|
||||
|
||||
try {
|
||||
// Create an XReplaceable object and an XReplaceDescriptor
|
||||
replaceable = (XReplaceable)
|
||||
UnoRuntime.queryInterface(XReplaceable.class, xTextDocument);
|
||||
|
||||
descriptor =
|
||||
(XReplaceDescriptor) replaceable.createReplaceDescriptor();
|
||||
|
||||
// Gets a XPropertyReplace object for altering the properties
|
||||
// of the replaced text
|
||||
xPropertyReplace = (XPropertyReplace)
|
||||
UnoRuntime.queryInterface(XPropertyReplace.class, descriptor);
|
||||
|
||||
// Sets the replaced text property fontweight value to Bold or Normal
|
||||
wv = null;
|
||||
if (bold) {
|
||||
wv = new PropertyValue("CharWeight", -1,
|
||||
new Float(com.sun.star.awt.FontWeight.BOLD),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
}
|
||||
else {
|
||||
wv = new PropertyValue("CharWeight", -1,
|
||||
new Float(com.sun.star.awt.FontWeight.NORMAL),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
}
|
||||
|
||||
// Sets the replaced text property color value to RGB color parameter
|
||||
cv = new PropertyValue("CharColor", -1, new Integer(color),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Apply the properties
|
||||
PropertyValue[] props = { cv, wv };
|
||||
xPropertyReplace.setReplaceAttributes(props);
|
||||
|
||||
// Only matches whole words and case sensitive
|
||||
descriptor.setPropertyValue("SearchCaseSensitive", new Boolean(true));
|
||||
descriptor.setPropertyValue("SearchWords", new Boolean(true));
|
||||
|
||||
// Replaces all instances of searchKey with new Text properties
|
||||
// and gets the number of instances of the searchKey
|
||||
descriptor.setSearchString(searchKey);
|
||||
descriptor.setReplaceString(searchKey);
|
||||
result = replaceable.replaceAll(descriptor);
|
||||
|
||||
}
|
||||
catch (Exception e) {
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
searchKey = "";
|
||||
|
||||
// The XSCRIPTCONTEXT variable is of type XScriptContext and is available to
|
||||
// all BeanShell scripts executed by the Script Framework
|
||||
xTextDocument = (XTextDocument)
|
||||
UnoRuntime.queryInterface(XTextDocument.class, XSCRIPTCONTEXT.getDocument());
|
||||
|
||||
// Create a JButton and add an ActionListener
|
||||
// When clicked the value for the searchKey is read and passed to replaceText
|
||||
myListener = new ActionListener() {
|
||||
actionPerformed(ActionEvent e) {
|
||||
searchKey = findTextBox.getText();
|
||||
|
||||
if(searchKey.equalsIgnoreCase("")) {
|
||||
JOptionPane.showMessageDialog(null,
|
||||
"No text entered for search",
|
||||
"No text", JOptionPane.INFORMATION_MESSAGE);
|
||||
}
|
||||
else {
|
||||
// highlight the text in red
|
||||
cRed = new Color(255, 0, 0);
|
||||
red = cRed.getRGB();
|
||||
num = replaceText(searchKey, red, true);
|
||||
|
||||
if(num > 0) {
|
||||
int response = JOptionPane.showConfirmDialog(null,
|
||||
searchKey + " was found " + num +
|
||||
" times\nDo you wish to keep the text highlighted?",
|
||||
"Confirm highlight", JOptionPane.YES_NO_OPTION,
|
||||
JOptionPane.QUESTION_MESSAGE);
|
||||
|
||||
if (response == 1) {
|
||||
cBlack = new Color(255, 255, 255);
|
||||
black = cBlack.getRGB();
|
||||
replaceText(searchKey, black, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
JOptionPane.showMessageDialog(null,
|
||||
"No matches were found", "Not found",
|
||||
JOptionPane.INFORMATION_MESSAGE);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
exitListener = new ActionListener() {
|
||||
actionPerformed(ActionEvent e) {
|
||||
frame.dispose();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
searchButton = new JButton("Highlight");
|
||||
searchButton.addActionListener(myListener);
|
||||
|
||||
exitButton = new JButton("Exit");
|
||||
exitButton.addActionListener(exitListener);
|
||||
|
||||
buttonPanel = new JPanel();
|
||||
buttonPanel.setLayout(new FlowLayout());
|
||||
buttonPanel.add(searchButton);
|
||||
buttonPanel.add(exitButton);
|
||||
|
||||
|
||||
// Create a JPanel containing one JTextField for the search text.
|
||||
searchPanel = new JPanel();
|
||||
searchPanel.setLayout(new FlowLayout());
|
||||
findTextBox = new JTextField(20);
|
||||
findWhat = new JLabel("Find What: ");
|
||||
searchPanel.add(findWhat);
|
||||
searchPanel.add(findTextBox);
|
||||
|
||||
// Create frame and add a window listener
|
||||
frame = new JFrame("Highlight Text");
|
||||
frame.setSize(350,130);
|
||||
frame.setLocation(430,430);
|
||||
frame.setResizable(false);
|
||||
// Add the panel and button to the frame
|
||||
frame.getContentPane().setLayout(new GridLayout(2,1,10,10));
|
||||
frame.getContentPane().add(searchPanel);
|
||||
frame.getContentPane().add(buttonPanel);
|
||||
|
||||
frame.setVisible(true);
|
||||
frame.pack();
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="BeanShell" xmlns:parcel="scripting.dtd">
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="ShowDialog" />
|
||||
<description>
|
||||
Example of how to show a dialog from BeanShell
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="ShowDialog.bsh" />
|
||||
<logicalname value="ShowDialog.BeanShell" />
|
||||
</script>
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="ButtonPressHandler" />
|
||||
<description>
|
||||
Example of handle button press events for the Dialog
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="ButtonPressHandler.bsh" />
|
||||
<logicalname value="ButtonPressHandler.BeanShell" />
|
||||
</script>
|
||||
</parcel>
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.uno.AnyConverter;
|
||||
import com.sun.star.uno.Type;
|
||||
import com.sun.star.lang.XComponent;
|
||||
import com.sun.star.lang.XMultiServiceFactory;
|
||||
import com.sun.star.frame.XComponentLoader;
|
||||
import com.sun.star.document.XEmbeddedObjectSupplier;
|
||||
import com.sun.star.awt.ActionEvent;
|
||||
import com.sun.star.awt.Rectangle;
|
||||
import com.sun.star.beans.XPropertySet;
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
|
||||
import com.sun.star.container.*;
|
||||
import com.sun.star.chart.*;
|
||||
import com.sun.star.table.*;
|
||||
import com.sun.star.sheet.*;
|
||||
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
|
||||
createSpreadsheet()
|
||||
{
|
||||
loader = (XComponentLoader)
|
||||
UnoRuntime.queryInterface(
|
||||
XComponentLoader.class, XSCRIPTCONTEXT.getDesktop());
|
||||
|
||||
comp = loader.loadComponentFromURL(
|
||||
"private:factory/scalc", "_blank", 4, new PropertyValue[0]);
|
||||
|
||||
doc = (XSpreadsheetDocument)
|
||||
UnoRuntime.queryInterface(XSpreadsheetDocument.class, comp);
|
||||
|
||||
index = (XIndexAccess)
|
||||
UnoRuntime.queryInterface(XIndexAccess.class, doc.getSheets());
|
||||
|
||||
sheet = (XSpreadsheet) AnyConverter.toObject(
|
||||
new Type(com.sun.star.sheet.XSpreadsheet.class), index.getByIndex(0));
|
||||
|
||||
return sheet;
|
||||
}
|
||||
|
||||
addData(sheet, date, total, free)
|
||||
{
|
||||
// set the labels
|
||||
sheet.getCellByPosition(0, 0).setFormula("Used");
|
||||
sheet.getCellByPosition(0, 1).setFormula("Free");
|
||||
sheet.getCellByPosition(0, 2).setFormula("Total");
|
||||
|
||||
// set the values in the cells
|
||||
sheet.getCellByPosition(1, 0).setValue(total - free);
|
||||
sheet.getCellByPosition(1, 1).setValue(free);
|
||||
sheet.getCellByPosition(1, 2).setValue(total);
|
||||
}
|
||||
|
||||
addChart(sheet)
|
||||
{
|
||||
rect = new Rectangle();
|
||||
rect.X = 500;
|
||||
rect.Y = 3000;
|
||||
rect.Width = 10000;
|
||||
rect.Height = 8000;
|
||||
|
||||
range = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, sheet);
|
||||
myRange = range.getCellRangeByName("A1:B2");
|
||||
|
||||
rangeAddr = (XCellRangeAddressable)
|
||||
UnoRuntime.queryInterface(XCellRangeAddressable.class, myRange);
|
||||
|
||||
myAddr = rangeAddr.getRangeAddress();
|
||||
|
||||
CellRangeAddress[] addr = new CellRangeAddress[1];
|
||||
addr[0] = myAddr;
|
||||
|
||||
supp = (XTableChartsSupplier)
|
||||
UnoRuntime.queryInterface( XTableChartsSupplier.class, sheet);
|
||||
charts = supp.getCharts();
|
||||
charts.addNewByName("Example", rect, addr, false, true);
|
||||
|
||||
try { Thread.sleep(3000); } catch (java.lang.InterruptedException e) { }
|
||||
|
||||
// get the diagram and Change some of the properties
|
||||
chartsAccess = (XNameAccess)
|
||||
UnoRuntime.queryInterface( XNameAccess.class, charts);
|
||||
|
||||
tchart = (XTableChart)
|
||||
UnoRuntime.queryInterface(
|
||||
XTableChart.class, chartsAccess.getByName("Example"));
|
||||
|
||||
eos = (XEmbeddedObjectSupplier)
|
||||
UnoRuntime.queryInterface( XEmbeddedObjectSupplier.class, tchart );
|
||||
xifc = eos.getEmbeddedObject();
|
||||
|
||||
xChart = (XChartDocument)
|
||||
UnoRuntime.queryInterface(XChartDocument.class, xifc);
|
||||
|
||||
xDocMSF = (XMultiServiceFactory)
|
||||
UnoRuntime.queryInterface(XMultiServiceFactory.class, xChart);
|
||||
|
||||
diagObject = xDocMSF.createInstance("com.sun.star.chart.PieDiagram");
|
||||
xDiagram = (XDiagram)
|
||||
UnoRuntime.queryInterface(XDiagram.class, diagObject);
|
||||
xChart.setDiagram(xDiagram);
|
||||
|
||||
propset = (XPropertySet)
|
||||
UnoRuntime.queryInterface( XPropertySet.class, xChart.getTitle() );
|
||||
propset.setPropertyValue("String", "JVM Memory Usage");
|
||||
}
|
||||
|
||||
runtime = Runtime.getRuntime();
|
||||
generator = new Random();
|
||||
date = new Date();
|
||||
|
||||
// allocate a random number of bytes so that the data changes
|
||||
len = (int)(generator.nextFloat() * runtime.freeMemory() / 5);
|
||||
bytes = new byte[len];
|
||||
|
||||
sheet = createSpreadsheet();
|
||||
addData(sheet, date.toString(), runtime.totalMemory(), runtime.freeMemory());
|
||||
addChart(sheet);
|
||||
|
||||
return 0;
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="BeanShell" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="BeanShell JVM Usage"/>
|
||||
<description>
|
||||
Updates a spreadsheet with the current memory usage statistics for the Java Virtual Machine
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="memusage.bsh"/>
|
||||
<logicalname value="MemoryUsage.BeanShell"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="BeanShell" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="BeanShell">
|
||||
<locale lang="en">
|
||||
<displayname value="Word Count"/>
|
||||
<description>
|
||||
Provides a word count of the selected text in A Writer document.
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="wordcount.bsh"/>
|
||||
<logicalname value="WordCount.BeanShell"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
//Provides a word count of the selected text in a Writer document.
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.frame.XModel;
|
||||
import com.sun.star.view.XSelectionSupplier;
|
||||
import com.sun.star.container.XIndexAccess;
|
||||
import com.sun.star.text.XText;
|
||||
import com.sun.star.text.XTextRange;
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
|
||||
// display the count in a Swing dialog
|
||||
void doDisplay(numWords) {
|
||||
wordsLabel = new JLabel("Word count = " + numWords);
|
||||
closeButton = new JButton("Close");
|
||||
frame = new JFrame("Word Count");
|
||||
closeButton.addActionListener(new ActionListener() {
|
||||
actionPerformed(ActionEvent e) {
|
||||
frame.setVisible(false);
|
||||
}
|
||||
});
|
||||
frame.getContentPane().setLayout(new BorderLayout());
|
||||
frame.getContentPane().add(wordsLabel, BorderLayout.CENTER);
|
||||
frame.getContentPane().add(closeButton, BorderLayout.SOUTH);
|
||||
frame.pack();
|
||||
frame.setSize(190,90);
|
||||
frame.setLocation(430,430);
|
||||
frame.setVisible(true);
|
||||
}
|
||||
|
||||
int wordcount() {
|
||||
|
||||
result = 0;
|
||||
|
||||
// iterate through each of the selections
|
||||
count = xIndexAccess.getCount();
|
||||
for(i=0;i<count;i++) {
|
||||
// get the XTextRange of the selection
|
||||
xTextRange = (XTextRange)
|
||||
UnoRuntime.queryInterface(XTextRange.class, xIndexAccess.getByIndex(i));
|
||||
//System.out.println("string: "+xTextRange.getString());
|
||||
// use the standard J2SE delimiters to tokenize the string
|
||||
// obtained from the XTextRange
|
||||
strTok = new StringTokenizer(xTextRange.getString());
|
||||
result += strTok.countTokens();
|
||||
}
|
||||
|
||||
doDisplay(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
// The XSCRIPTCONTEXT variable is of type XScriptContext and is available to
|
||||
// all BeanShell scripts executed by the Script Framework
|
||||
xModel = (XModel)
|
||||
UnoRuntime.queryInterface(XModel.class, XSCRIPTCONTEXT.getDocument());
|
||||
//the writer controller impl supports the css.view.XSelectionSupplier interface
|
||||
xSelectionSupplier = (XSelectionSupplier)
|
||||
UnoRuntime.queryInterface(XSelectionSupplier.class, xModel.getCurrentController());
|
||||
//see section 7.5.1 of developers' guide
|
||||
// the getSelection provides an XIndexAccess to the one or more selections
|
||||
xIndexAccess = (XIndexAccess)
|
||||
UnoRuntime.queryInterface(XIndexAccess.class, xSelectionSupplier.getSelection());
|
||||
|
||||
count = wordcount();
|
||||
System.out.println("count = "+count);
|
||||
return 0;
|
||||
BIN
server/libreoffice/share/Scripts/java/HelloWorld/HelloWorld.jar
Normal file
BIN
server/libreoffice/share/Scripts/java/HelloWorld/HelloWorld.jar
Normal file
Binary file not shown.
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.text.XTextDocument;
|
||||
import com.sun.star.text.XTextRange;
|
||||
import com.sun.star.text.XText;
|
||||
/**
|
||||
* HelloWorld class
|
||||
*
|
||||
*/
|
||||
public class HelloWorld {
|
||||
public static void printHW(XScriptContext xSc) {
|
||||
|
||||
// getting the text document object
|
||||
XTextDocument xtextdocument = (XTextDocument) UnoRuntime.queryInterface(
|
||||
XTextDocument.class, xSc.getDocument());
|
||||
XText xText = xtextdocument.getText();
|
||||
XTextRange xTextRange = xText.getEnd();
|
||||
xTextRange.setString("Hello World (in Java)");
|
||||
|
||||
}// printHW
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
||||
<script language="Java">
|
||||
<locale lang="en">
|
||||
<displayname value="HelloWorld.Java"/>
|
||||
<description>
|
||||
Prints "Hello World".
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="org.libreoffice.example.java_scripts.HelloWorld.printHW"/>
|
||||
<logicalname value="HelloWorld.printHW"/>
|
||||
<languagedepprops>
|
||||
<prop name="classpath" value="HelloWorld.jar"/>
|
||||
</languagedepprops>
|
||||
</script>
|
||||
</parcel>
|
||||
BIN
server/libreoffice/share/Scripts/java/Highlight/Highlight.jar
Normal file
BIN
server/libreoffice/share/Scripts/java/Highlight/Highlight.jar
Normal file
Binary file not shown.
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
import com.sun.star.lang.XMultiComponentFactory;
|
||||
import com.sun.star.lang.EventObject;
|
||||
import com.sun.star.uno.Type;
|
||||
import com.sun.star.uno.AnyConverter;
|
||||
import com.sun.star.text.XTextDocument;
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
import com.sun.star.script.XLibraryContainer;
|
||||
import com.sun.star.awt.*;
|
||||
import com.sun.star.util.*;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public class HighlightText implements com.sun.star.awt.XActionListener {
|
||||
|
||||
// UNO awt components of the Highlight dialog
|
||||
XDialog findDialog = null;
|
||||
XTextComponent findTextBox;
|
||||
|
||||
// The document being searched
|
||||
XTextDocument theDocument;
|
||||
|
||||
// The text to be searched for
|
||||
private String searchKey = "";
|
||||
|
||||
public void showForm(XScriptContext context) {
|
||||
System.err.println("Starting showForm");
|
||||
|
||||
XMultiComponentFactory xmcf =
|
||||
context.getComponentContext().getServiceManager();
|
||||
|
||||
Object[] args = new Object[1];
|
||||
args[0] = context.getDocument();
|
||||
|
||||
Object obj;
|
||||
|
||||
try {
|
||||
obj = xmcf.createInstanceWithArgumentsAndContext(
|
||||
"com.sun.star.awt.DialogProvider", args,
|
||||
context.getComponentContext());
|
||||
} catch (com.sun.star.uno.Exception e) {
|
||||
System.err.println("Error getting DialogProvider object");
|
||||
return;
|
||||
}
|
||||
|
||||
XDialogProvider xDialogProvider = (XDialogProvider)
|
||||
UnoRuntime.queryInterface(XDialogProvider.class, obj);
|
||||
|
||||
System.err.println("Got DialogProvider, now get dialog");
|
||||
|
||||
try {
|
||||
findDialog = xDialogProvider.createDialog(
|
||||
"vnd.sun.star.script:" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
} catch (java.lang.Exception e) {
|
||||
System.err.println("Got exception on first creating dialog: " +
|
||||
e.getMessage());
|
||||
}
|
||||
|
||||
if (findDialog == null) {
|
||||
if (!tryLoadingLibrary(xmcf, context, "Dialog") ||
|
||||
!tryLoadingLibrary(xmcf, context, "Script")) {
|
||||
System.err.println("Error loading ScriptBindingLibrary");
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
findDialog = xDialogProvider.createDialog(
|
||||
"vnd.sun.star.script://" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
} catch (com.sun.star.lang.IllegalArgumentException iae) {
|
||||
System.err.println("Error loading ScriptBindingLibrary");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
XControlContainer controls = (XControlContainer)
|
||||
UnoRuntime.queryInterface(XControlContainer.class, findDialog);
|
||||
|
||||
XButton highlightButton = (XButton) UnoRuntime.queryInterface(
|
||||
XButton.class, controls.getControl("HighlightButton"));
|
||||
highlightButton.setActionCommand("Highlight");
|
||||
|
||||
findTextBox = (XTextComponent) UnoRuntime.queryInterface(
|
||||
XTextComponent.class, controls.getControl("HighlightTextField"));
|
||||
|
||||
XButton exitButton = (XButton) UnoRuntime.queryInterface(
|
||||
XButton.class, controls.getControl("ExitButton"));
|
||||
exitButton.setActionCommand("Exit");
|
||||
|
||||
theDocument = (XTextDocument) UnoRuntime.queryInterface(
|
||||
XTextDocument.class, context.getDocument());
|
||||
|
||||
highlightButton.addActionListener(this);
|
||||
exitButton.addActionListener(this);
|
||||
|
||||
findDialog.execute();
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (e.ActionCommand.equals("Exit")) {
|
||||
findDialog.endExecute();
|
||||
return;
|
||||
} else if (e.ActionCommand.equals("Highlight")) {
|
||||
searchKey = findTextBox.getText();
|
||||
|
||||
// highlight the text in red
|
||||
Color cRed = new Color(255, 0, 0);
|
||||
int red = cRed.getRGB();
|
||||
|
||||
XReplaceable replaceable = (XReplaceable)
|
||||
UnoRuntime.queryInterface(XReplaceable.class, theDocument);
|
||||
|
||||
XReplaceDescriptor descriptor =
|
||||
(XReplaceDescriptor) replaceable.createReplaceDescriptor();
|
||||
|
||||
// Gets a XPropertyReplace object for altering the properties
|
||||
// of the replaced text
|
||||
XPropertyReplace xPropertyReplace = (XPropertyReplace)
|
||||
UnoRuntime.queryInterface(XPropertyReplace.class, descriptor);
|
||||
|
||||
// Sets the replaced text property fontweight value to Bold
|
||||
PropertyValue wv = new PropertyValue("CharWeight", -1,
|
||||
new Float(com.sun.star.awt.FontWeight.BOLD),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Sets the replaced text property color value to RGB parameter
|
||||
PropertyValue cv = new PropertyValue("CharColor", -1,
|
||||
Integer.valueOf(red),
|
||||
com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Apply the properties
|
||||
PropertyValue[] props = new PropertyValue[] { cv, wv };
|
||||
|
||||
try {
|
||||
xPropertyReplace.setReplaceAttributes(props);
|
||||
|
||||
// Only matches whole words and case sensitive
|
||||
descriptor.setPropertyValue(
|
||||
"SearchCaseSensitive", Boolean.TRUE);
|
||||
descriptor.setPropertyValue("SearchWords", Boolean.TRUE);
|
||||
} catch (com.sun.star.beans.UnknownPropertyException upe) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
} catch (com.sun.star.beans.PropertyVetoException pve) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
} catch (com.sun.star.lang.WrappedTargetException wte) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
} catch (com.sun.star.lang.IllegalArgumentException iae) {
|
||||
System.err.println("Error setting up search properties");
|
||||
return;
|
||||
}
|
||||
|
||||
// Replaces all instances of searchKey with new Text properties
|
||||
// and gets the number of instances of the searchKey
|
||||
descriptor.setSearchString(searchKey);
|
||||
descriptor.setReplaceString(searchKey);
|
||||
replaceable.replaceAll(descriptor);
|
||||
}
|
||||
}
|
||||
|
||||
public void disposing(EventObject o) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
private boolean tryLoadingLibrary(
|
||||
XMultiComponentFactory xmcf, XScriptContext context, String name) {
|
||||
System.err.println("Try to load ScriptBindingLibrary");
|
||||
|
||||
try {
|
||||
Object obj = xmcf.createInstanceWithContext(
|
||||
"com.sun.star.script.Application" + name + "LibraryContainer",
|
||||
context.getComponentContext());
|
||||
|
||||
XLibraryContainer xLibraryContainer = (XLibraryContainer)
|
||||
UnoRuntime.queryInterface(XLibraryContainer.class, obj);
|
||||
|
||||
System.err.println("Got XLibraryContainer");
|
||||
|
||||
Object serviceObj = context.getComponentContext().getValueByName(
|
||||
"/singletons/com.sun.star.util.theMacroExpander");
|
||||
|
||||
XMacroExpander xme = (XMacroExpander) AnyConverter.toObject(
|
||||
new Type(XMacroExpander.class), serviceObj);
|
||||
|
||||
String bootstrapName = "bootstraprc";
|
||||
|
||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
||||
bootstrapName = "bootstrap.ini";
|
||||
}
|
||||
|
||||
String libURL = xme.expandMacros(
|
||||
"$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/basic/ScriptBindingLibrary/" +
|
||||
name.toLowerCase() + ".xlb/");
|
||||
|
||||
System.err.println("libURL is: " + libURL);
|
||||
|
||||
xLibraryContainer.createLibraryLink(
|
||||
"ScriptBindingLibrary", libURL, false);
|
||||
|
||||
System.err.println("liblink created");
|
||||
|
||||
} catch (com.sun.star.uno.Exception e) {
|
||||
System.err.println("Got an exception loading lib: " + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
||||
<script language="Java">
|
||||
<locale lang="en">
|
||||
<displayname value="HighlightText.showForm"/>
|
||||
<description>
|
||||
Text highlighting
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="org.libreoffice.example.java_scripts.HighlightText.showForm"/>
|
||||
<logicalname value="HighlightText.showForm"/>
|
||||
<languagedepprops>
|
||||
<prop name="classpath" value="Highlight.jar"/>
|
||||
</languagedepprops>
|
||||
</script>
|
||||
</parcel>
|
||||
Binary file not shown.
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
package org.libreoffice.example.java_scripts;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.Date;
|
||||
import com.sun.star.uno.UnoRuntime;
|
||||
import com.sun.star.uno.AnyConverter;
|
||||
import com.sun.star.uno.Type;
|
||||
import com.sun.star.uno.XInterface;
|
||||
import com.sun.star.lang.XComponent;
|
||||
import com.sun.star.lang.XMultiServiceFactory;
|
||||
import com.sun.star.frame.XComponentLoader;
|
||||
import com.sun.star.document.XEmbeddedObjectSupplier;
|
||||
import com.sun.star.awt.Rectangle;
|
||||
import com.sun.star.beans.XPropertySet;
|
||||
import com.sun.star.beans.PropertyValue;
|
||||
|
||||
import com.sun.star.container.*;
|
||||
import com.sun.star.chart.*;
|
||||
import com.sun.star.table.*;
|
||||
import com.sun.star.sheet.*;
|
||||
|
||||
import com.sun.star.script.provider.XScriptContext;
|
||||
|
||||
public class MemoryUsage {
|
||||
public void updateMemoryUsage(XScriptContext ctxt)
|
||||
throws Exception {
|
||||
XSpreadsheet sheet = createSpreadsheet(ctxt);
|
||||
|
||||
Runtime runtime = Runtime.getRuntime();
|
||||
Random generator = new Random();
|
||||
Date date = new Date();
|
||||
|
||||
// allocate a random amount of memory
|
||||
int len = (int)(generator.nextFloat() * runtime.freeMemory() / 5);
|
||||
byte[] bytes = new byte[len];
|
||||
|
||||
addData(sheet, date.toString(),
|
||||
runtime.totalMemory(), runtime.freeMemory());
|
||||
|
||||
addChart(sheet);
|
||||
}
|
||||
|
||||
private XSpreadsheet createSpreadsheet(XScriptContext ctxt)
|
||||
throws Exception {
|
||||
XComponentLoader loader = (XComponentLoader)
|
||||
UnoRuntime.queryInterface(
|
||||
XComponentLoader.class, ctxt.getDesktop());
|
||||
|
||||
XComponent comp = loader.loadComponentFromURL(
|
||||
"private:factory/scalc", "_blank", 4, new PropertyValue[0]);
|
||||
|
||||
XSpreadsheetDocument doc = (XSpreadsheetDocument)
|
||||
UnoRuntime.queryInterface(XSpreadsheetDocument.class, comp);
|
||||
|
||||
XIndexAccess index = (XIndexAccess)
|
||||
UnoRuntime.queryInterface(XIndexAccess.class, doc.getSheets());
|
||||
|
||||
XSpreadsheet sheet = (XSpreadsheet) AnyConverter.toObject(
|
||||
new Type(com.sun.star.sheet.XSpreadsheet.class), index.getByIndex(0));
|
||||
|
||||
return sheet;
|
||||
}
|
||||
|
||||
private void addData(
|
||||
XSpreadsheet sheet, String date, long total, long free)
|
||||
throws Exception {
|
||||
sheet.getCellByPosition(0, 0).setFormula("Used");
|
||||
sheet.getCellByPosition(0, 1).setFormula("Free");
|
||||
sheet.getCellByPosition(0, 2).setFormula("Total");
|
||||
|
||||
sheet.getCellByPosition(1, 0).setValue(total - free);
|
||||
sheet.getCellByPosition(1, 1).setValue(free);
|
||||
sheet.getCellByPosition(1, 2).setValue(total);
|
||||
}
|
||||
|
||||
private void addChart(XSpreadsheet sheet)
|
||||
throws Exception {
|
||||
Rectangle rect = new Rectangle();
|
||||
rect.X = 500;
|
||||
rect.Y = 3000;
|
||||
rect.Width = 10000;
|
||||
rect.Height = 8000;
|
||||
|
||||
XCellRange range = (XCellRange)
|
||||
UnoRuntime.queryInterface(XCellRange.class, sheet);
|
||||
|
||||
XCellRange myRange =
|
||||
range.getCellRangeByName("A1:B2");
|
||||
|
||||
XCellRangeAddressable rangeAddr = (XCellRangeAddressable)
|
||||
UnoRuntime.queryInterface(XCellRangeAddressable.class, myRange);
|
||||
|
||||
CellRangeAddress myAddr = rangeAddr.getRangeAddress();
|
||||
|
||||
CellRangeAddress[] addr = new CellRangeAddress[1];
|
||||
addr[0] = myAddr;
|
||||
|
||||
XTableChartsSupplier supp = (XTableChartsSupplier)
|
||||
UnoRuntime.queryInterface(XTableChartsSupplier.class, sheet);
|
||||
|
||||
XTableCharts charts = supp.getCharts();
|
||||
charts.addNewByName("Example", rect, addr, false, true);
|
||||
|
||||
try {
|
||||
Thread.sleep(3000);
|
||||
} catch (InterruptedException e) { }
|
||||
|
||||
// get the diagram and Change some of the properties
|
||||
XNameAccess chartsAccess = (XNameAccess)
|
||||
UnoRuntime.queryInterface(XNameAccess.class, charts);
|
||||
|
||||
XTableChart tchart = (XTableChart)
|
||||
UnoRuntime.queryInterface(
|
||||
XTableChart.class, chartsAccess.getByName("Example"));
|
||||
|
||||
XEmbeddedObjectSupplier eos = (XEmbeddedObjectSupplier)
|
||||
UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, tchart);
|
||||
|
||||
XInterface xifc = eos.getEmbeddedObject();
|
||||
|
||||
XChartDocument xChart = (XChartDocument)
|
||||
UnoRuntime.queryInterface(XChartDocument.class, xifc);
|
||||
|
||||
XMultiServiceFactory xDocMSF = (XMultiServiceFactory)
|
||||
UnoRuntime.queryInterface(XMultiServiceFactory.class, xChart);
|
||||
|
||||
Object diagObject =
|
||||
xDocMSF.createInstance("com.sun.star.chart.PieDiagram");
|
||||
|
||||
XDiagram xDiagram = (XDiagram)
|
||||
UnoRuntime.queryInterface(XDiagram.class, diagObject);
|
||||
|
||||
xChart.setDiagram(xDiagram);
|
||||
|
||||
XPropertySet propset = (XPropertySet)
|
||||
UnoRuntime.queryInterface(XPropertySet.class, xChart.getTitle());
|
||||
propset.setPropertyValue("String", "JVM Memory Usage");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
||||
<script language="Java">
|
||||
<locale lang="en">
|
||||
<displayname value="MemoryUtils.MemUsage"/>
|
||||
<description>
|
||||
Text highlighting
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="org.libreoffice.example.java_scripts.MemoryUsage.updateMemoryUsage"/>
|
||||
<logicalname value="MemoryUtils.MemUsage"/>
|
||||
<languagedepprops>
|
||||
<prop name="classpath" value="MemoryUsage.jar"/>
|
||||
</languagedepprops>
|
||||
</script>
|
||||
</parcel>
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// When this script is run on an existing, saved, spreadsheet,
|
||||
// eg. /home/testuser/myspreadsheet.sxc, the script will export
|
||||
// each sheet to a separate html file,
|
||||
// eg. /home/testuser/myspreadsheet_sheet1.html,
|
||||
// /home/testuser/myspreadsheet_sheet2.html etc
|
||||
importClass(Packages.com.sun.star.uno.UnoRuntime);
|
||||
importClass(Packages.com.sun.star.sheet.XSpreadsheetDocument);
|
||||
importClass(Packages.com.sun.star.container.XIndexAccess);
|
||||
importClass(Packages.com.sun.star.beans.XPropertySet);
|
||||
importClass(Packages.com.sun.star.beans.PropertyValue);
|
||||
importClass(Packages.com.sun.star.util.XModifiable);
|
||||
importClass(Packages.com.sun.star.frame.XStorable);
|
||||
importClass(Packages.com.sun.star.frame.XModel);
|
||||
importClass(Packages.com.sun.star.uno.AnyConverter);
|
||||
importClass(Packages.com.sun.star.uno.Type);
|
||||
|
||||
importClass(java.lang.System);
|
||||
|
||||
//get the document object from the scripting context
|
||||
oDoc = XSCRIPTCONTEXT.getDocument();
|
||||
//get the XSpreadsheetDocument interface from the document
|
||||
xSDoc = UnoRuntime.queryInterface(XSpreadsheetDocument, oDoc);
|
||||
//get the XModel interface from the document
|
||||
xModel = UnoRuntime.queryInterface(XModel,oDoc);
|
||||
//get the XIndexAccess interface used to access each sheet
|
||||
xSheetsIndexAccess = UnoRuntime.queryInterface(XIndexAccess, xSDoc.getSheets());
|
||||
//get the XStorable interface used to save the document
|
||||
xStorable = UnoRuntime.queryInterface(XStorable,xSDoc);
|
||||
//get the XModifiable interface used to indicate if the document has been
|
||||
//changed
|
||||
xModifiable = UnoRuntime.queryInterface(XModifiable,xSDoc);
|
||||
|
||||
//set up an array of PropertyValue objects used to save each sheet in the
|
||||
//document
|
||||
storeProps = new Array;//PropertyValue[1];
|
||||
storeProps[0] = new PropertyValue();
|
||||
storeProps[0].Name = "FilterName";
|
||||
storeProps[0].Value = "HTML (StarCalc)";
|
||||
storeUrl = xModel.getURL();
|
||||
storeUrl = storeUrl.substring(0,storeUrl.lastIndexOf('.'));
|
||||
|
||||
//set only one sheet visible, and store to HTML doc
|
||||
for(var i=0;i<xSheetsIndexAccess.getCount();i++)
|
||||
{
|
||||
setAllButOneHidden(xSheetsIndexAccess,i);
|
||||
xModifiable.setModified(false);
|
||||
xStorable.storeToURL(storeUrl+"_sheet"+(i+1)+".html", storeProps);
|
||||
}
|
||||
|
||||
// now set all visible again
|
||||
for(var i=0;i<xSheetsIndexAccess.getCount();i++)
|
||||
{
|
||||
xPropSet = AnyConverter.toObject( new Type(XPropertySet), xSheetsIndexAccess.getByIndex(i));
|
||||
xPropSet.setPropertyValue("IsVisible", true);
|
||||
}
|
||||
|
||||
function setAllButOneHidden(xSheetsIndexAccess,vis) {
|
||||
//System.err.println("count="+xSheetsIndexAccess.getCount());
|
||||
//get an XPropertySet interface for the vis-th sheet
|
||||
xPropSet = AnyConverter.toObject( new Type(XPropertySet), xSheetsIndexAccess.getByIndex(vis));
|
||||
//set the vis-th sheet to be visible
|
||||
xPropSet.setPropertyValue("IsVisible", true);
|
||||
// set all other sheets to be invisible
|
||||
for(var i=0;i<xSheetsIndexAccess.getCount();i++)
|
||||
{
|
||||
xPropSet = AnyConverter.toObject( new Type(XPropertySet), xSheetsIndexAccess.getByIndex(i));
|
||||
if(i!=vis) {
|
||||
xPropSet.setPropertyValue("IsVisible", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="JavaScript">
|
||||
<locale lang="en">
|
||||
<displayname value="ExportSheetsToHTML"/>
|
||||
<description>
|
||||
Saves each sheet in the current Calc document as a separate HTML file in the same directory as the original Calc document.
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="exportsheetstohtml.js"/>
|
||||
<logicalname value="ExportSheetsToHTML.JavaScript"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
// Hello World in JavaScript
|
||||
importClass(Packages.com.sun.star.uno.UnoRuntime);
|
||||
importClass(Packages.com.sun.star.text.XTextDocument);
|
||||
importClass(Packages.com.sun.star.text.XText);
|
||||
importClass(Packages.com.sun.star.text.XTextRange);
|
||||
|
||||
//get the document from the scripting context
|
||||
oDoc = XSCRIPTCONTEXT.getDocument();
|
||||
//get the XTextDocument interface
|
||||
xTextDoc = UnoRuntime.queryInterface(XTextDocument,oDoc);
|
||||
//get the XText interface
|
||||
xText = xTextDoc.getText();
|
||||
//get an (empty) XTextRange interface at the end of the text
|
||||
xTextRange = xText.getEnd();
|
||||
//set the text in the XTextRange
|
||||
xTextRange.setString( "Hello World (in JavaScript)" );
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
|
||||
|
||||
<script language="JavaScript">
|
||||
<locale lang="en">
|
||||
<displayname value="Hello World"/>
|
||||
<description>
|
||||
Adds the string "Hello World" into the current text doc.
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="helloworld.js"/>
|
||||
<logicalname value="HelloWorld.JavaScript"/>
|
||||
</script>
|
||||
|
||||
</parcel>
|
||||
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
//this script acts as a handler for the buttons in the Highlight dialog
|
||||
importClass(Packages.com.sun.star.uno.UnoRuntime);
|
||||
importClass(Packages.com.sun.star.uno.Type);
|
||||
importClass(Packages.com.sun.star.uno.AnyConverter);
|
||||
|
||||
importClass(Packages.com.sun.star.awt.XButton);
|
||||
importClass(Packages.com.sun.star.awt.XControl);
|
||||
importClass(Packages.com.sun.star.awt.ActionEvent);
|
||||
importClass(Packages.com.sun.star.awt.XControlModel);
|
||||
importClass(Packages.com.sun.star.awt.XControlContainer);
|
||||
importClass(Packages.com.sun.star.awt.XDialog);
|
||||
importClass(Packages.com.sun.star.awt.XTextComponent);
|
||||
|
||||
importClass(Packages.com.sun.star.util.XReplaceable);
|
||||
importClass(Packages.com.sun.star.util.XReplaceDescriptor);
|
||||
importClass(Packages.com.sun.star.util.XPropertyReplace);
|
||||
|
||||
importClass(Packages.com.sun.star.beans.XPropertySet);
|
||||
importClass(Packages.com.sun.star.beans.PropertyValue);
|
||||
|
||||
// Scripting Framework DialogFactory class
|
||||
importClass(Packages.com.sun.star.script.framework.browse.DialogFactory);
|
||||
|
||||
// Get the ActionEvent object from the ARGUMENTS list
|
||||
event = ARGUMENTS[0];
|
||||
|
||||
// Each argument is of type Any so we must use the AnyConverter class to
|
||||
// convert it into the interface or primitive type we expect
|
||||
button = AnyConverter.toObject(new Type(XButton), event.Source);
|
||||
|
||||
// We can now query for the model of the button and get its properties
|
||||
control = UnoRuntime.queryInterface(XControl, button);
|
||||
cmodel = control.getModel();
|
||||
pset = UnoRuntime.queryInterface(XPropertySet, cmodel);
|
||||
|
||||
if (pset.getPropertyValue("Label").equals("Exit"))
|
||||
{
|
||||
// We can get the XDialog in which this control appears by calling
|
||||
// getContext() on the XControl interface
|
||||
xDialog = UnoRuntime.queryInterface(
|
||||
XDialog, control.getContext());
|
||||
|
||||
// Close the dialog
|
||||
xDialog.endExecute();
|
||||
}
|
||||
else
|
||||
{
|
||||
// We can get the list of controls for this dialog by calling
|
||||
// getContext() on the XControl interface of the button
|
||||
controls = UnoRuntime.queryInterface(
|
||||
XControlContainer, control.getContext());
|
||||
|
||||
// Now get the text field control from the list
|
||||
textField =
|
||||
UnoRuntime.queryInterface(
|
||||
XTextComponent, controls.getControl("HighlightTextField"));
|
||||
|
||||
searchKey = textField.getText();
|
||||
|
||||
// highlight the text in red
|
||||
red = java.awt.Color.red.getRGB();
|
||||
|
||||
replaceable =
|
||||
UnoRuntime.queryInterface(XReplaceable, XSCRIPTCONTEXT.getDocument());
|
||||
|
||||
descriptor = replaceable.createReplaceDescriptor();
|
||||
|
||||
// Gets a XPropertyReplace object for altering the properties
|
||||
// of the replaced text
|
||||
xPropertyReplace = UnoRuntime.queryInterface(XPropertyReplace, descriptor);
|
||||
|
||||
// Sets the replaced text property fontweight value to Bold
|
||||
wv = new PropertyValue("CharWeight", -1,
|
||||
new java.lang.Float(Packages.com.sun.star.awt.FontWeight.BOLD),
|
||||
Packages.com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Sets the replaced text property color value to RGB parameter
|
||||
cv = new PropertyValue("CharColor", -1,
|
||||
new java.lang.Integer(red),
|
||||
Packages.com.sun.star.beans.PropertyState.DIRECT_VALUE);
|
||||
|
||||
// Apply the properties
|
||||
props = new Array;
|
||||
props[0] = cv;
|
||||
props[1] = wv;
|
||||
|
||||
try {
|
||||
xPropertyReplace.setReplaceAttributes(props);
|
||||
|
||||
// Only matches whole words and case sensitive
|
||||
descriptor.setPropertyValue(
|
||||
"SearchCaseSensitive", new java.lang.Boolean(true));
|
||||
descriptor.setPropertyValue("SearchWords", new java.lang.Boolean(true));
|
||||
|
||||
// Replaces all instances of searchKey with new Text properties
|
||||
// and gets the number of instances of the searchKey
|
||||
descriptor.setSearchString(searchKey);
|
||||
descriptor.setReplaceString(searchKey);
|
||||
replaceable.replaceAll(descriptor);
|
||||
}
|
||||
catch (e) {
|
||||
java.lang.System.err.println("Error setting up search properties"
|
||||
+ e.getMessage());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
importClass(Packages.com.sun.star.uno.UnoRuntime);
|
||||
importClass(Packages.com.sun.star.lang.XMultiComponentFactory);
|
||||
importClass(Packages.com.sun.star.awt.XDialogProvider);
|
||||
importClass(Packages.com.sun.star.awt.XDialog);
|
||||
importClass(Packages.com.sun.star.uno.Exception);
|
||||
importClass(Packages.com.sun.star.script.provider.XScriptContext);
|
||||
|
||||
importClass(java.lang.Thread);
|
||||
importClass(java.lang.System);
|
||||
|
||||
function tryLoadingLibrary( xmcf, context, name )
|
||||
{
|
||||
try
|
||||
{
|
||||
obj = xmcf.createInstanceWithContext(
|
||||
"com.sun.star.script.Application" + name + "LibraryContainer",
|
||||
context.getComponentContext());
|
||||
|
||||
xLibraryContainer = UnoRuntime.queryInterface(XLibraryContainer, obj);
|
||||
|
||||
System.err.println("Got XLibraryContainer");
|
||||
|
||||
serviceObj = context.getComponentContext().getValueByName(
|
||||
"/singletons/com.sun.star.util.theMacroExpander");
|
||||
|
||||
xme = AnyConverter.toObject(new Type(XMacroExpander), serviceObj);
|
||||
|
||||
bootstrapName = "bootstraprc";
|
||||
if (System.getProperty("os.name").startsWith("Windows"))
|
||||
{
|
||||
bootstrapName = "bootstrap.ini";
|
||||
}
|
||||
|
||||
libURL = xme.expandMacros(
|
||||
"$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/basic/ScriptBindingLibrary/" +
|
||||
name.toLowerCase() + ".xlb/");
|
||||
|
||||
System.err.println("libURL is: " + libURL);
|
||||
|
||||
xLibraryContainer.createLibraryLink(
|
||||
"ScriptBindingLibrary", libURL, false);
|
||||
|
||||
System.err.println("liblink created");
|
||||
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
System.err.println("Got an exception loading lib: " + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function getDialogProvider()
|
||||
{
|
||||
// UNO awt components of the Highlight dialog
|
||||
//get the XMultiServiceFactory
|
||||
xmcf = XSCRIPTCONTEXT.getComponentContext().getServiceManager();
|
||||
|
||||
args = new Array;
|
||||
//get the XDocument from the context
|
||||
args[0] = XSCRIPTCONTEXT.getDocument();
|
||||
|
||||
//try to create the DialogProvider
|
||||
try {
|
||||
obj = xmcf.createInstanceWithArgumentsAndContext(
|
||||
"com.sun.star.awt.DialogProvider", args,
|
||||
XSCRIPTCONTEXT.getComponentContext());
|
||||
}
|
||||
catch (e) {
|
||||
System.err.println("Error getting DialogProvider object");
|
||||
return null;
|
||||
}
|
||||
|
||||
return UnoRuntime.queryInterface(XDialogProvider, obj);
|
||||
}
|
||||
|
||||
//get the DialogProvider
|
||||
xDialogProvider = getDialogProvider();
|
||||
|
||||
if (xDialogProvider != null)
|
||||
{
|
||||
//try to create the Highlight dialog (found in the ScriptBinding library)
|
||||
try
|
||||
{
|
||||
findDialog = xDialogProvider.createDialog("vnd.sun.star.script:" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
if( findDialog == null )
|
||||
{
|
||||
if (tryLoadingLibrary(xmcf, XSCRIPTCONTEXT, "Dialog") == false ||
|
||||
tryLoadingLibrary(xmcf, XSCRIPTCONTEXT, "Script") == false)
|
||||
{
|
||||
System.err.println("Error loading ScriptBindingLibrary");
|
||||
}
|
||||
else
|
||||
{
|
||||
// try to create the Highlight dialog (found in the
|
||||
// ScriptBindingLibrary)
|
||||
findDialog = xDialogProvider.createDialog("vnd.sun.star.script:" +
|
||||
"ScriptBindingLibrary.Highlight?location=application");
|
||||
}
|
||||
}
|
||||
|
||||
//launch the dialog
|
||||
if ( findDialog != null )
|
||||
{
|
||||
findDialog.execute();
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
System.err.println("Got exception on first creating dialog: " +
|
||||
e.getMessage());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<parcel language="JavaScript" xmlns:parcel="scripting.dtd">
|
||||
<script language="JavaScript">
|
||||
<locale lang="en">
|
||||
<displayname value="ShowDialog" />
|
||||
<description>
|
||||
Example of how to show a dialog from JavaScript
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="ShowDialog.js" />
|
||||
<logicalname value="ShowDialog.JavaScript" />
|
||||
</script>
|
||||
<script language="JavaScript">
|
||||
<locale lang="en">
|
||||
<displayname value="ButtonPressHandler" />
|
||||
<description>
|
||||
Example of handle button press events for the Dialog
|
||||
</description>
|
||||
</locale>
|
||||
<functionname value="ButtonPressHandler.js" />
|
||||
<logicalname value="ButtonPressHandler.JavaScript" />
|
||||
</script>
|
||||
</parcel>
|
||||
|
||||
96
server/libreoffice/share/Scripts/python/Capitalise.py
Normal file
96
server/libreoffice/share/Scripts/python/Capitalise.py
Normal file
@@ -0,0 +1,96 @@
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
def getNewString(theString):
|
||||
"""helper function
|
||||
"""
|
||||
if (not theString):
|
||||
return ""
|
||||
|
||||
# should we tokenize on "."?
|
||||
if len(theString) >= 2 and theString[:2].isupper():
|
||||
# first two chars are UC => first UC, rest LC
|
||||
newString = theString[0].upper() + theString[1:].lower()
|
||||
|
||||
elif theString[0].isupper():
|
||||
# first char UC => all to LC
|
||||
newString = theString.lower()
|
||||
|
||||
else:
|
||||
# all to UC.
|
||||
newString = theString.upper()
|
||||
|
||||
return newString
|
||||
|
||||
|
||||
def capitalisePython():
|
||||
"""Change the case of the selected or current word(s).
|
||||
If at least the first two characters are "UPpercase, then it is changed
|
||||
to first char "Uppercase".
|
||||
If the first character is "Uppercase", then it is changed to
|
||||
all "lowercase".
|
||||
Otherwise, all are changed to "UPPERCASE".
|
||||
"""
|
||||
# The context variable is of type XScriptContext and is available to
|
||||
# all BeanShell scripts executed by the Script Framework
|
||||
xModel = XSCRIPTCONTEXT.getDocument()
|
||||
|
||||
# the writer controller impl supports the css.view.XSelectionSupplier
|
||||
# interface
|
||||
xSelectionSupplier = xModel.getCurrentController()
|
||||
|
||||
# see section 7.5.1 of developers' guide
|
||||
xIndexAccess = xSelectionSupplier.getSelection()
|
||||
count = xIndexAccess.getCount()
|
||||
|
||||
if(count >= 1): # ie we have a selection
|
||||
i = 0
|
||||
|
||||
while i < count:
|
||||
xTextRange = xIndexAccess.getByIndex(i)
|
||||
theString = xTextRange.getString()
|
||||
# print("theString")
|
||||
if len(theString) == 0:
|
||||
# sadly we can have a selection where nothing is selected
|
||||
# in this case we get the XWordCursor and make a selection!
|
||||
xText = xTextRange.getText()
|
||||
xWordCursor = xText.createTextCursorByRange(xTextRange)
|
||||
|
||||
if not xWordCursor.isStartOfWord():
|
||||
xWordCursor.gotoStartOfWord(False)
|
||||
|
||||
xWordCursor.gotoNextWord(True)
|
||||
theString = xWordCursor.getString()
|
||||
newString = getNewString(theString)
|
||||
|
||||
if newString:
|
||||
xWordCursor.setString(newString)
|
||||
xSelectionSupplier.select(xWordCursor)
|
||||
else:
|
||||
newString = getNewString(theString)
|
||||
if newString:
|
||||
xTextRange.setString(newString)
|
||||
xSelectionSupplier.select(xTextRange)
|
||||
i += 1
|
||||
|
||||
|
||||
# lists the scripts, that shall be visible inside OOo. Can be omitted, if
|
||||
# all functions shall be visible, however here getNewString shall be suppressed
|
||||
g_exportedScripts = capitalisePython,
|
||||
|
||||
# vim: set shiftwidth=4 softtabstop=4 expandtab:
|
||||
47
server/libreoffice/share/Scripts/python/HelloWorld.py
Normal file
47
server/libreoffice/share/Scripts/python/HelloWorld.py
Normal file
@@ -0,0 +1,47 @@
|
||||
# HelloWorld python script for the scripting framework
|
||||
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
def HelloWorldPython():
|
||||
"""Prints the string 'Hello World (in Python)' into the current document.
|
||||
"""
|
||||
|
||||
# Get the doc from the scripting context which is made available to all
|
||||
# scripts.
|
||||
desktop = XSCRIPTCONTEXT.getDesktop()
|
||||
model = desktop.getCurrentComponent()
|
||||
|
||||
# Check whether there's already an opened document.
|
||||
# Otherwise, create a new one
|
||||
if not hasattr(model, "Text"):
|
||||
model = desktop.loadComponentFromURL(
|
||||
"private:factory/swriter", "_blank", 0, ())
|
||||
|
||||
# get the XText interface
|
||||
text = model.Text
|
||||
|
||||
# create an XTextRange at the end of the document
|
||||
tRange = text.End
|
||||
|
||||
# and set the string
|
||||
tRange.String = "Hello World (in Python)"
|
||||
|
||||
return None
|
||||
|
||||
# vim: set shiftwidth=4 softtabstop=4 expandtab:
|
||||
65
server/libreoffice/share/Scripts/python/InsertText.py
Normal file
65
server/libreoffice/share/Scripts/python/InsertText.py
Normal file
@@ -0,0 +1,65 @@
|
||||
# Example python script for the scripting framework
|
||||
|
||||
#
|
||||
# This file is part of the LibreOffice project.
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# This file incorporates work covered by the following license notice:
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed
|
||||
# with this work for additional information regarding copyright
|
||||
# ownership. The ASF licenses this file to you under the Apache
|
||||
# License, Version 2.0 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
#
|
||||
|
||||
def InsertText(text):
|
||||
"""Inserts the argument string into the current document.
|
||||
If there is a selection, the selection is replaced by it.
|
||||
"""
|
||||
|
||||
# Get the doc from the scripting context which is made available to
|
||||
# all scripts.
|
||||
desktop = XSCRIPTCONTEXT.getDesktop()
|
||||
model = desktop.getCurrentComponent()
|
||||
|
||||
# Check whether there's already an opened document.
|
||||
if not hasattr(model, "Text"):
|
||||
return
|
||||
|
||||
# The context variable is of type XScriptContext and is available to
|
||||
# all BeanShell scripts executed by the Script Framework
|
||||
xModel = XSCRIPTCONTEXT.getDocument()
|
||||
|
||||
# The writer controller impl supports the css.view.XSelectionSupplier
|
||||
# interface.
|
||||
xSelectionSupplier = xModel.getCurrentController()
|
||||
|
||||
# See section 7.5.1 of developers' guide
|
||||
xIndexAccess = xSelectionSupplier.getSelection()
|
||||
count = xIndexAccess.getCount()
|
||||
|
||||
if count >= 1: # ie we have a selection
|
||||
i = 0
|
||||
|
||||
while i < count:
|
||||
xTextRange = xIndexAccess.getByIndex(i)
|
||||
theString = xTextRange.getString()
|
||||
|
||||
if not len(theString):
|
||||
# Nothing really selected, just insert.
|
||||
xText = xTextRange.getText()
|
||||
xWordCursor = xText.createTextCursorByRange(xTextRange)
|
||||
xWordCursor.setString(text)
|
||||
xSelectionSupplier.select(xWordCursor)
|
||||
else:
|
||||
# Replace the selection.
|
||||
xTextRange.setString(text)
|
||||
xSelectionSupplier.select(xTextRange)
|
||||
|
||||
i += 1
|
||||
2176
server/libreoffice/share/Scripts/python/LibreLogo/LibreLogo.py
Normal file
2176
server/libreoffice/share/Scripts/python/LibreLogo/LibreLogo.py
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=voorwaarts|vw
|
||||
BACKWARD=terug|tg
|
||||
TURNLEFT=links|linksaf|li
|
||||
TURNRIGHT=regs|regsaf|re
|
||||
PENUP=penop|po
|
||||
PENDOWN=penaf|pa
|
||||
HOME=tuis
|
||||
POINT=punt
|
||||
CIRCLE=sirkel
|
||||
ELLIPSE=ellips
|
||||
SQUARE=vierkant
|
||||
RECTANGLE=reghoek
|
||||
LABEL=byskrif
|
||||
PENCOLOR=penkleur|lynkleur|pk
|
||||
ANY=elke
|
||||
PENWIDTH=pengrootte|pendikte|penbreedte|pg
|
||||
PENSTYLE=penstyl|lynstyl
|
||||
PENJOINT=pen-oorgang|lyn-oorgang
|
||||
PENCAP=pen-einde|lyn-einde
|
||||
NONE=geen
|
||||
BEVEL=afskuinsing
|
||||
MITER=hoeksny
|
||||
ROUNDED=ronding
|
||||
SOLID=solied
|
||||
DASH=gestreep
|
||||
DOTTED=gestippel
|
||||
CLOSE=sluit
|
||||
FILL=vul in
|
||||
FILLCOLOR=vulkleur|vk
|
||||
FILLTRANSPARENCY=vuldeursigtigheid
|
||||
PENTRANSPARENCY=pen-deursigtigheid|lyn-deursigtigheid
|
||||
FILLSTYLE=vulstyl
|
||||
FONTCOLOR=fontkleur|tekskleur
|
||||
FONTTRANSPARENCY=fontdeursigtigheid|teksdeursigtigheid
|
||||
FONTHEIGHT=fontgrootte|teksgrootte
|
||||
FONTWEIGHT=fontdikte
|
||||
FONTSTYLE=fontstyl
|
||||
BOLD=vetdruk
|
||||
ITALIC=skuinsdruk
|
||||
UPRIGHT=regop|normaal
|
||||
NORMAL=normaal
|
||||
FONTFAMILY=font familie
|
||||
CLEARSCREEN=skerm uitve\u00EB
|
||||
TEXT=teks
|
||||
HIDETURTLE=verberg
|
||||
SHOWTURTLE=vertoon
|
||||
POSITION=posisie|pos
|
||||
HEADING=rigting
|
||||
PAGESIZE=bladsygrootte
|
||||
GROUP=afbeelding
|
||||
|
||||
# control structures
|
||||
|
||||
TO=na
|
||||
END=einde
|
||||
STOP=stop
|
||||
REPEAT=herhaal
|
||||
REPCOUNT=herhaal teller
|
||||
BREAK=breuk
|
||||
CONTINUE=gaan voort
|
||||
WHILE=terwyl
|
||||
FOR=vir
|
||||
IN=dm
|
||||
IF=as
|
||||
OUTPUT=uitvoer
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=waar
|
||||
FALSE=onwaar
|
||||
NOT=nie
|
||||
AND=en
|
||||
OR=of
|
||||
INPUT=invoer
|
||||
PRINT=uitdruk
|
||||
SLEEP=wag
|
||||
GLOBAL=globaal
|
||||
|
||||
# functions
|
||||
RANDOM=willekeurig
|
||||
INT=heel
|
||||
FLOAT=komma
|
||||
STR=str
|
||||
SQRT=vierkantswortel
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=rondaf
|
||||
ABS=abs
|
||||
COUNT=telling
|
||||
SET=versameling
|
||||
RANGE=omvang
|
||||
LIST=lys
|
||||
TUPLE=tupel
|
||||
SORTED=gesorteer
|
||||
RESUB=voetskrif
|
||||
RESEARCH=soek
|
||||
REFINDALL=vind alles
|
||||
MIN=min
|
||||
MAX=maks
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=,
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=dm|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=onsigbaar
|
||||
BLACK=swart
|
||||
SILVER=silwer
|
||||
GRAY=grys
|
||||
WHITE=wit
|
||||
MAROON=maroon
|
||||
RED=rooi
|
||||
PURPLE=pers
|
||||
FUCHSIA=fuchsia
|
||||
GREEN=groen
|
||||
LIME=lemmetjie
|
||||
OLIVE=olyfgroen
|
||||
YELLOW=geel
|
||||
NAVY=vlootblou
|
||||
BLUE=blou
|
||||
TEAL=blougroen
|
||||
AQUA=siaan
|
||||
PINK=roos
|
||||
TOMATO=tamatie
|
||||
ORANGE=oranje
|
||||
GOLD=goud
|
||||
VIOLET=violet
|
||||
SKYBLUE=hemelblou
|
||||
CHOCOLATE=sjokolade
|
||||
BROWN=bruin
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Fout (in re\u00EBl %s)
|
||||
ERR_ZERODIVISION=Deling deur nul.
|
||||
ERR_NAME=Onbekende naam: "%s".
|
||||
ERR_ARGUMENTS=%s het %s argumente nodig (%s gegee).
|
||||
ERR_BLOCK=Fout (ekstra of ontbrekende spasies by haakies?)
|
||||
ERR_KEY=Onbekende element: %s
|
||||
ERR_INDEX=Indeks oorskry bereik.
|
||||
|
||||
ERR_STOP=Program be-eindig:
|
||||
ERR_MAXRECURSION=maksimum rekursie diepte (%d) oorskry.
|
||||
ERR_MEMORY=Onvoldoende geheue.
|
||||
ERR_NOTAPROGRAM=Wil u die teksdokument uitvoer?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=\u12C8\u12F0 \u134A\u1275|\u12C8\u12F0 \u134A\u1275
|
||||
BACKWARD=\u12C8\u12F0 \u128B\u120B|\u12C8\u12F0 \u128B\u120B
|
||||
TURNLEFT=\u130D\u122B|\u12C8\u12F0 \u130D\u122B \u121B\u12DF\u122A\u12EB|\u12C8\u12F0 \u130D\u122B
|
||||
TURNRIGHT=\u1240\u129D|\u12C8\u12F0 \u1240\u129D \u121B\u12DF\u122A\u12EB|\u12C8\u12F0 \u1240\u129D
|
||||
PENUP=\u1265\u12D5\u122D \u12C8\u12F0 \u120B\u12ED |pu
|
||||
PENDOWN=\u1265\u12D5\u122D \u12C8\u12F0 \u1273\u127D |pd
|
||||
HOME=\u1264\u1275
|
||||
POINT=\u1290\u1325\u1266\u127D
|
||||
CIRCLE=\u12AD\u1265
|
||||
ELLIPSE=\u12A4\u120A\u1355\u1235
|
||||
SQUARE=\u1235\u12B4\u122D
|
||||
RECTANGLE=\u12A0\u122B\u1275 \u121B\u12A5\u12D8\u1295
|
||||
LABEL=\u121D\u120D\u12AD\u1275
|
||||
PENCOLOR=\u12E8 \u1265\u12D5\u122D \u1240\u1208\u121D|\u12E8 \u1265\u12D5\u122D \u1240\u1208\u121D|\u12E8 \u1218\u1235\u1218\u122D \u1240\u1208\u121D|\u1265/\u1240
|
||||
ANY=\u121B\u1295\u129B\u12CD\u121D
|
||||
PENWIDTH=\u12E8 \u1265\u12D5\u122D \u1218\u1320\u1295 |\u12E8 \u1265\u12D5\u122D \u1235\u134B\u1275 |\u12E8 \u1218\u1235\u1218\u122D \u1235\u134B\u1275 |ps
|
||||
PENSTYLE=\u12E8\u1265\u12D5\u122D \u12D8\u12F4 |\u12E8 \u1218\u1235\u1218\u122D \u12D8\u12F4
|
||||
PENJOINT=\u12E8\u1265\u12D5\u122D \u1218\u1308\u1293\u129B |\u12E8\u1218\u1235\u1218\u122D \u1218\u1308\u1293\u129B
|
||||
PENCAP=\u12E8\u1265\u12D5\u122D \u1218\u1308\u1293\u129B |\u12E8\u1218\u1235\u1218\u122D \u1218\u1308\u1293\u129B
|
||||
NONE=\u121D\u1295\u121D
|
||||
BEVEL=\u1235\u120B\u123D
|
||||
MITER=\u1218\u130B\u1320\u121A\u12EB
|
||||
ROUNDED=\u12AD\u1265
|
||||
SOLID=\u1219\u1209
|
||||
DASH=\u12F3\u123D
|
||||
DOTTED=\u1290\u1320\u1265\u1323\u1265
|
||||
CLOSE=\u1218\u12DD\u130A\u12EB
|
||||
FILL=\u1218\u1219\u12EB
|
||||
FILLCOLOR=\u1240\u1208\u121D \u1218\u1219\u12EB|\u1240\u1208\u121D \u1218\u1219\u12EB|\u1240.\u1218
|
||||
FILLTRANSPARENCY=\u130D\u120D\u133D\u1290\u1275 \u1218\u1219\u12EB
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=\u1218\u1219\u12EB \u12D8\u12F4
|
||||
FONTCOLOR=\u12E8 \u134A\u12F0\u120D \u1240\u1208\u121D|\u12E8 \u133D\u1201\u134D \u1240\u1208\u121D|\u12E8 \u133D\u1201\u134D \u1240\u1208\u121D
|
||||
FONTTRANSPARENCY=\u12E8 \u134A\u12F0\u120D|\u133D\u1201\u134D \u130D\u120D\u133D\u1290\u1275:
|
||||
FONTHEIGHT=\u12E8\u134A\u12F0\u120D \u1218\u1320\u1295|\u12E8\u133D\u1201\u134D \u1218\u1320\u1295|\u12E8\u133D\u1201\u134D \u12A5\u122D\u12DD\u1218\u1275
|
||||
FONTWEIGHT=\u12E8\u134A\u12F0\u120D \u12AD\u1265\u12F0\u1275
|
||||
FONTSTYLE=\u12E8\u134A\u12F0\u120D \u12D8\u12F4
|
||||
BOLD=\u121B\u12F5\u1218\u1242\u12EB
|
||||
ITALIC=\u121B\u12DD\u1218\u121A\u12EB
|
||||
UPRIGHT=\u1240\u1325\u1270\u129B|\u1218\u12F0\u1260\u129B
|
||||
NORMAL=\u1218\u12F0\u1260\u129B
|
||||
FONTFAMILY=\u12E8\u134A\u12F0\u120D \u1264\u1270\u1230\u1265
|
||||
CLEARSCREEN=\u1218\u1218\u120D\u12A8\u127B \u121B\u133D\u1303|\u1218.\u121B
|
||||
TEXT=\u133D\u1201\u134D
|
||||
HIDETURTLE=\u12A4\u120A \u1218\u12F0\u1260\u1242\u12EB|ht|\u12ED\u12F0\u1265\u1241\u129D
|
||||
SHOWTURTLE=\u12A4\u120A \u121B\u1233\u12EB|st|\u12EB\u1233\u12E9\u129D
|
||||
POSITION=\u1266\u1273|\u1266\u1273|\u1266\u1273 \u121B\u1230\u1293\u1303
|
||||
HEADING=\u122B\u1235\u130C|\u122B\u1235\u130C \u121B\u1230\u1293\u1303|\u122B.\u121B
|
||||
PAGESIZE=\u12E8 \u1308\u133D \u1218\u1320\u1295
|
||||
GROUP=\u1235\u12A5\u120D|\u1235\u12A5\u120D
|
||||
|
||||
# control structures
|
||||
|
||||
TO=\u1208
|
||||
END=\u1218\u1328\u1228\u123B
|
||||
STOP=\u121B\u1235\u1246\u121A\u12EB
|
||||
REPEAT=\u1218\u12F5\u1308\u121A\u12EB|\u1208\u12D8\u1208\u12A0\u1208\u121D
|
||||
REPCOUNT=repcount
|
||||
BREAK=\u1218\u1328\u1228\u123B
|
||||
CONTINUE=\u12ED\u1240\u1325\u1209
|
||||
WHILE=\u1275\u1295\u123D
|
||||
FOR=\u1208
|
||||
IN=\u12A2\u1295\u127D
|
||||
IF=\u12A8
|
||||
OUTPUT=\u12CD\u1324\u1275
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u12A5\u12CD\u1290\u1275
|
||||
FALSE=\u1200\u1230\u1275
|
||||
NOT=\u12A0\u12ED\u12F0\u1208\u121D
|
||||
AND=\u12A5\u1293
|
||||
OR=\u12C8\u12ED\u121D
|
||||
INPUT=\u121B\u1235\u1308\u1262\u12EB
|
||||
PRINT=\u121B\u1270\u121A\u12EB
|
||||
SLEEP=\u121B\u1235\u1270\u129B
|
||||
GLOBAL=\u12A0\u1208\u121D \u12A0\u1240\u134D
|
||||
|
||||
# functions
|
||||
RANDOM=\u1260\u1290\u1232\u1265
|
||||
INT=int
|
||||
FLOAT=\u121B\u1295\u1233\u1348\u134A\u12EB
|
||||
STR=str
|
||||
SQRT=\u1235\u12B4\u122D \u1229\u1275
|
||||
LOG10=\u120E\u130D10
|
||||
SIN=\u1233\u12ED\u1295
|
||||
COS=\u12AE\u1235
|
||||
ROUND=\u12AD\u1265
|
||||
ABS=\u134D\u1339\u121D
|
||||
COUNT=\u1218\u1241\u1320\u122A\u12EB
|
||||
SET=\u121B\u1230\u1293\u1303
|
||||
RANGE=\u1218\u1320\u1295
|
||||
LIST=\u12DD\u122D\u12DD\u122D
|
||||
TUPLE=\u1271\u1355\u120D
|
||||
SORTED=\u1270\u1208\u12ED\u1277\u120D
|
||||
RESUB=\u1295\u12D1\u1235
|
||||
RESEARCH=\u1218\u1348\u1208\u130A\u12EB
|
||||
REFINDALL=\u1201\u1209\u1295\u121D \u1218\u1348\u1208\u130A\u12EB
|
||||
MIN=\u12A0\u1290\u1235\u1270\u129B
|
||||
MAX=\u12A8\u134D\u1270\u129B
|
||||
|
||||
PI=\u1353\u12ED|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u121A/\u121A
|
||||
CM=\u1234/\u121A
|
||||
PT=\u1290\u1325\u1265
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u12E8\u121B\u12ED\u1273\u12ED
|
||||
BLACK=\u1325\u1241\u122D
|
||||
SILVER=\u1265\u122D
|
||||
GRAY=\u130D\u122B\u132B|\u130D\u122B\u132B
|
||||
WHITE=\u1290\u132D
|
||||
MAROON=\u12E8\u1238\u12AD\u120B \u1240\u1208\u121D
|
||||
RED=\u1240\u12ED
|
||||
PURPLE=\u12C8\u12ED\u1295 \u1320\u1305
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=\u12A0\u1228\u1295\u1313\u12F4
|
||||
LIME=\u120E\u121A
|
||||
OLIVE=\u12C8\u12ED\u122B
|
||||
YELLOW=\u1262\u132B
|
||||
NAVY=\u12E8\u1263\u1205\u122D \u1283\u12ED\u120D
|
||||
BLUE=\u1230\u121B\u12EB\u12CA
|
||||
TEAL=\u12A0\u1228\u1295\u1313\u12F4 \u1230\u121B\u12EB\u12CA
|
||||
AQUA=\u12C9\u1200|\u12A0\u1228\u1295\u1313\u12F4
|
||||
PINK=\u122E\u12DD
|
||||
TOMATO=\u1272\u121B\u1272\u121D
|
||||
ORANGE=\u1265\u122D\u1271\u12AB\u1295
|
||||
GOLD=\u12C8\u122D\u1245\u121B
|
||||
VIOLET=\u12C8\u12ED\u1295 \u1320\u1305
|
||||
SKYBLUE=\u1230\u121B\u12EB\u12CA
|
||||
CHOCOLATE=\u1325\u1241\u122D \u1261\u1293\u121B
|
||||
BROWN=\u1261\u1293\u121B
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=\u12E8\u120A\u1265\u122C \u121D\u120D\u12AD\u1275
|
||||
ERROR=\u1235\u1205\u1270\u1275 (\u1260 \u1218\u1235\u1218\u122D %s) \u120B\u12ED
|
||||
ERR_ZERODIVISION=\u1260\u12DC\u122E \u121B\u12AB\u1348\u120D
|
||||
ERR_NAME=\u12EB\u120D\u1273\u12C8\u1240 \u1235\u121D: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s \u12E8\u121A\u12C8\u1235\u12F0\u12CD %s \u12AD\u122D\u12AD\u122D (%s \u12E8\u1270\u1230\u1320\u12CD)
|
||||
ERR_BLOCK=\u1235\u1205\u1270\u1275 (\u1270\u1328\u121B\u122A \u12C8\u12ED\u1295\u121D \u1260\u1245\u1295\u1349 \u12CD\u1235\u1325 \u1263\u12F6 \u1266\u1273 \u12E8\u1208\u121D?)
|
||||
ERR_KEY=\u12EB\u120D\u1273\u12C8\u1240 \u12A0\u12AB\u120D: %s
|
||||
ERR_INDEX=\u121B\u12CD\u132B\u12CD \u12A8\u1270\u12C8\u1230\u1290\u12CD \u12CD\u132A \u1290\u12CD
|
||||
|
||||
ERR_STOP=\u1218\u1270\u130D\u1260\u122A\u12EB\u12CD \u1270\u124B\u122D\u1327\u120D :
|
||||
ERR_MAXRECURSION=\u12A8\u134D\u1270\u129B\u12CD\u1295 \u1218\u12F0\u130B\u1308\u121A\u12EB \u1218\u1320\u1295 (%d) \u12A0\u120D\u134F\u120D
|
||||
ERR_MEMORY=\u1260\u1242 memory \u12E8\u1208\u121D
|
||||
ERR_NOTAPROGRAM=\u12ED\u1205\u1295 \u12E8\u133D\u1201\u134D \u1230\u1290\u12F5 \u121B\u1235\u12AC\u12F5 \u12ED\u1348\u120D\u130B\u1209?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=\u0644\u0644\u0623\u0645\u0627\u0645|\u0623\u0645
|
||||
BACKWARD=\u0644\u0644\u062E\u0644\u0641|\u062E\u0641
|
||||
TURNLEFT=\u0644\u0644\u064A\u0633\u0627\u0631
|
||||
TURNRIGHT=\u0644\u0644\u064A\u0645\u064A\u0646
|
||||
PENUP=\u0627\u0631\u0641\u0639_\u0627\u0644\u0642\u0644\u0645|\u0627\u0631\u0641\u0639
|
||||
PENDOWN=\u0623\u0646\u0632\u0644_\u0627\u0644\u0642\u0644\u0645|\u0623\u0646\u0632\u0644
|
||||
HOME=\u0627\u0644\u0645\u0646\u0632\u0644
|
||||
POINT=\u0646\u0642\u0637\u0629
|
||||
CIRCLE=\u062F\u0627\u0626\u0631\u0629
|
||||
ELLIPSE=\u0628\u064A\u0636\u0627\u0648\u064A
|
||||
SQUARE=\u0645\u0631\u0628\u0639
|
||||
RECTANGLE=\u0645\u0633\u062A\u0637\u064A\u0644
|
||||
LABEL=\u062A\u0633\u0645\u064A\u0629
|
||||
PENCOLOR=\u0644\u0648\u0646_\u0627\u0644\u0642\u0644\u0645
|
||||
ANY=\u0623\u064A
|
||||
PENWIDTH=\u062D\u062C\u0645_\u0627\u0644\u0642\u0644\u0645|\u0639\u0631\u0636_\u0627\u0644\u0642\u0644\u0645
|
||||
PENSTYLE=\u0646\u0645\u0637_\u0627\u0644\u0642\u0644\u0645
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0628\u0644\u0627
|
||||
BEVEL=\u0645\u0634\u0637\u0648\u0641
|
||||
MITER=\u0642\u0644\u0646\u0633\u0648\u0629
|
||||
ROUNDED=\u062F\u0627\u0626\u0631\u064A
|
||||
SOLID=\u0635\u0644\u0628
|
||||
DASH=\u0645\u062A\u0642\u0637\u0639
|
||||
DOTTED=\u0645\u0646\u0642\u0637
|
||||
CLOSE=\u0623\u063A\u0644\u0642
|
||||
FILL=\u0627\u0645\u0644\u0623
|
||||
FILLCOLOR=\u0645\u0644\u0623_\u0644\u0648\u0646
|
||||
FILLTRANSPARENCY=\u0645\u0644\u0623_\u0634\u0641\u0627\u0641\u064A\u0629
|
||||
PENTRANSPARENCY=\u0634\u0641\u0627\u0641\u064A\u0629_\u0627\u0644\u0642\u0644\u0645
|
||||
FILLSTYLE=\u0646\u0645\u0637_\u0627\u0644\u0645\u0644\u0623
|
||||
FONTCOLOR=\u0644\u0648\u0646_\u0627\u0644\u062E\u0637
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=\u062D\u062C\u0645_\u0627\u0644\u062E\u0637
|
||||
FONTWEIGHT=\u0639\u0631\u0636_\u0627\u0644\u062E\u0637
|
||||
FONTSTYLE=\u0646\u0645\u0637_\u0627\u0644\u062E\u0637
|
||||
BOLD=\u0639\u0631\u064A\u0636
|
||||
ITALIC=\u0645\u0627\u0626\u0644
|
||||
UPRIGHT=\u0645\u0639\u062A\u062F\u0644|\u0639\u0627\u062F\u064A
|
||||
NORMAL=\u0639\u0627\u062F\u064A
|
||||
FONTFAMILY=\u0639\u0627\u0626\u0644\u0629_\u062E\u0637
|
||||
CLEARSCREEN=\u0645\u062D\u0648_\u0627\u0644\u0634\u0627\u0634\u0629|\u0645\u062D\u0648
|
||||
TEXT=\u0646\u0635
|
||||
HIDETURTLE=\u0623\u062E\u0641_\u0627\u0644\u0633\u0644\u062D\u0641\u0627\u0629|\u0623\u062E\u0641
|
||||
SHOWTURTLE=\u0623\u0638\u0647\u0631_\u0627\u0644\u0633\u0644\u062D\u0641\u0627\u0629|\u0623\u0638\u0647\u0631
|
||||
POSITION=\u0645\u0648\u0642\u0639|\u0639\u064A\u0646_\u0645\u0648\u0642\u0639
|
||||
HEADING=\u062A\u0631\u0648\u064A\u0633\u0629|\u0639\u064A\u0646_\u062A\u0631\u0648\u064A\u0633\u0629
|
||||
PAGESIZE=\u062D\u062C\u0645_\u0627\u0644\u0635\u0641\u062D\u0629
|
||||
GROUP=\u0631\u0633\u0645|\u0635\u0648\u0631
|
||||
|
||||
# control structures
|
||||
|
||||
TO=\u0625\u0644\u0649
|
||||
END=\u0627\u0644\u0646\u0647\u0627\u064A\u0629
|
||||
STOP=\u0623\u0648\u0642\u0641
|
||||
REPEAT=\u0643\u0631\u0631|\u0644\u0644\u0623\u0628\u062F
|
||||
REPCOUNT=\u0639\u062F\u0627\u062F_\u0627\u0644\u062A\u0643\u0631\u0627\u0631
|
||||
BREAK=\u0627\u0643\u0633\u0631
|
||||
CONTINUE=\u062A\u0627\u0628\u0639
|
||||
WHILE=\u0637\u0627\u0644\u0645\u0627
|
||||
FOR=\u0644\u0640
|
||||
IN=\u0641\u064A
|
||||
IF=\u0625\u0646
|
||||
OUTPUT=\u0623\u062E\u0631\u0650\u062C
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u0635\u062D\u064A\u062D
|
||||
FALSE=\u062E\u0637\u0623
|
||||
NOT=\u0644\u064A\u0633
|
||||
AND=\u0648
|
||||
OR=\u0623\u0648
|
||||
INPUT=\u0623\u062F\u062E\u0650\u0644
|
||||
PRINT=\u0627\u0637\u0628\u0639
|
||||
SLEEP=\u0646\u064E\u0645
|
||||
GLOBAL=\u0639\u0645\u0648\u0645\u064A
|
||||
|
||||
# functions
|
||||
RANDOM=\u0639\u0634\u0648\u0627\u0626\u064A
|
||||
INT=\u0639\u062F\u062F_\u0635\u062D\u064A\u062D
|
||||
FLOAT=\u0639\u062F\u062F_\u0639\u0634\u0631\u064A
|
||||
STR=\u0633\u0644\u0633\u0644\u0629
|
||||
SQRT=\u0627\u0644\u062C\u0630\u0631_\u0627\u0644\u062A\u0631\u0628\u064A\u0639\u064A
|
||||
LOG10=\u0644\u0648\u063A\u0627\u0631\u064A\u062B\u0645_\u0639\u0634\u0631\u064A
|
||||
SIN=\u062C\u0627
|
||||
COS=\u062C\u062A\u0627
|
||||
ROUND=\u062F\u0627\u0626\u0631\u064A
|
||||
ABS=\u0645\u0637\u0644\u0642
|
||||
COUNT=\u0639\u064F\u062F\u0651
|
||||
SET=\u0645\u0635\u0641\u0648\u0641\u0629
|
||||
RANGE=\u0627\u0644\u0646\u0637\u0627\u0642
|
||||
LIST=\u0642\u0627\u0626\u0645\u0629
|
||||
TUPLE=tuple
|
||||
SORTED=\u0627\u0641\u0631\u0632
|
||||
RESUB=\u0627\u0633\u062A\u0628\u062F\u0644
|
||||
RESEARCH=\u0627\u0628\u062D\u062B
|
||||
REFINDALL=\u0627\u0639\u062B\u0631_\u0639\u0644\u0649_\u0643\u0644
|
||||
MIN=\u0627\u0644\u0623\u062F\u0646\u0649
|
||||
MAX=\u0627\u0644\u0623\u0642\u0635\u0649
|
||||
|
||||
PI=\u0637|\u0628\u0627\u064A|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=\u0633
|
||||
MM=\u0645\u0645
|
||||
CM=\u0633\u0645
|
||||
PT=\u0646\u0642\u0637\u0629
|
||||
INCH=\u0641\u064A|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u0645\u062E\u0641\u064A
|
||||
BLACK=\u0623\u0633\u0648\u062F
|
||||
SILVER=\u0641\u0636\u064A
|
||||
GRAY=\u0631\u0645\u0627\u062F\u064A|\u0631\u0635\u0627\u0635\u064A
|
||||
WHITE=\u0623\u0628\u064A\u0636
|
||||
MAROON=\u0643\u0633\u062A\u0646\u0627\u0626\u064A
|
||||
RED=\u0623\u062D\u0645\u0631
|
||||
PURPLE=\u0628\u0646\u0641\u0633\u062C\u064A
|
||||
FUCHSIA=\u0641\u0648\u0634\u064A\u0627|\u0623\u0631\u062C\u0648\u0627\u0646\u064A
|
||||
GREEN=\u0623\u062E\u0636\u0631
|
||||
LIME=\u0644\u064A\u0645\u0648\u0646\u064A
|
||||
OLIVE=\u0632\u064A\u062A\u0648\u0646\u064A
|
||||
YELLOW=\u0623\u0635\u0641\u0631
|
||||
NAVY=\u0623\u0632\u0631\u0642_\u0628\u062D\u0631\u064A
|
||||
BLUE=\u0623\u0632\u0631\u0642
|
||||
TEAL=\u0623\u0632\u0631\u0642_\u0645\u062E\u0636\u0631
|
||||
AQUA=\u0633\u0645\u0627\u0648\u064A|\u0633\u064A\u0627\u0646
|
||||
PINK=\u0648\u0631\u062F\u064A
|
||||
TOMATO=\u0637\u0645\u0627\u0637\u0645\u064A
|
||||
ORANGE=\u0628\u0631\u062A\u0642\u0627\u0644\u064A
|
||||
GOLD=\u0630\u0647\u0628\u064A
|
||||
VIOLET=\u0628\u0646\u0641\u0633\u062C\u064A
|
||||
SKYBLUE=\u0633\u0645\u0627\u0648\u064A
|
||||
CHOCOLATE=\u0634\u0648\u0643\u0648\u0644\u0627\u062A\u064A
|
||||
BROWN=\u0628\u0646\u064A
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=\u0644\u064A\u0628\u0631\u200C\u0644\u0648\u063A\u0648
|
||||
ERROR=\u062E\u0637\u0623 (\u0641\u064A \u0627\u0644\u0633\u0637\u0631 %s)
|
||||
ERR_ZERODIVISION=\u0627\u0644\u0642\u0633\u0645\u0629 \u0639\u0644\u0649 \u0635\u0641\u0631.
|
||||
ERR_NAME=\u0627\u0644\u0627\u0633\u0645 \u0645\u062C\u0647\u0648\u0644: \u201D%s\u201C.
|
||||
ERR_ARGUMENTS=%s \u064A\u0623\u062E\u0630 %s \u0645\u0646 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0627\u062A (%s \u0623\u064F\u0639\u0637\u064A\u062A).
|
||||
ERR_BLOCK=\u062E\u0637\u0623 (\u0645\u0633\u0627\u0641\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629 \u0623\u0648 \u0645\u0641\u0642\u0648\u062F\u0629 \u0641\u064A \u0627\u0644\u0623\u0642\u0648\u0627\u0633\u061F)
|
||||
ERR_KEY=\u0639\u0646\u0635\u0631 \u0645\u062C\u0647\u0648\u0644: %s
|
||||
ERR_INDEX=\u0627\u0644\u0641\u0647\u0631\u0633 \u062E\u0627\u0631\u062C \u0627\u0644\u0645\u062C\u0627\u0644.
|
||||
|
||||
ERR_STOP=\u062A\u0648\u0642\u0641 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C:
|
||||
ERR_MAXRECURSION=\u062A\u062C\u0627\u0648\u0632\u062A\u064F \u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649 \u0644\u0644\u0639\u0645\u0642 \u0627\u0644\u062A\u0643\u0631\u0627\u0631\u064A (%d)
|
||||
ERR_MEMORY=\u0644\u0627 \u0630\u0627\u0643\u0631\u0629 \u0643\u0627\u0641\u064A\u0629.
|
||||
ERR_NOTAPROGRAM=\u0623\u062A\u0631\u064A\u062F \u062A\u0634\u063A\u064A\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062A\u0646\u062F \u0627\u0644\u0646\u0635\u0651\u064A\u0651\u061F
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=\u0998\u09F0
|
||||
POINT=\u09AC\u09BF\u09A8\u09CD\u09A6\u09C1
|
||||
CIRCLE=\u09AC\u09C3\u09A4\u09CD\u09A4
|
||||
ELLIPSE=\u0989\u09AA\u09AC\u09C3\u09A4\u09CD\u09A4
|
||||
SQUARE=\u09AC\u09F0\u09CD\u0997
|
||||
RECTANGLE=\u0986\u09DF\u09A4
|
||||
LABEL=\u09B2\u09C7\u09AC\u09C7\u09B2
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=\u09AF\u09BF\u0995\u09CB\u09A8\u09CB
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0995\u09CB\u09A8\u09CB \u09A8\u09B9\u09DF
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=\u0997\u09CB\u09B2\u09BE\u0995\u09BE\u09F0
|
||||
SOLID=\u0995\u09A0\u09BF\u09A8
|
||||
DASH=\u09A1\u09C7\u09B6\u09CD\u09AC\u09AF\u09C1\u0995\u09CD\u09A4
|
||||
DOTTED=\u09A1\u099F\u09C7\u09A1
|
||||
CLOSE=\u09AC\u09A8\u09CD\u09A7 \u0995\u09F0\u0995
|
||||
FILL=\u09AA\u09C2\u09F0\u09CD\u09A3 \u0995\u09F0\u0995
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=\u09A1\u09BE\u09A0
|
||||
ITALIC=\u0987\u09A4\u09BE\u09B2\u09BF\u0995
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=\u09B8\u09BE\u09A7\u09BE\u09F0\u09A8
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u09B2\u09BF\u0996\u09A8\u09C0
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=\u09B2\u09C8
|
||||
END=\u0985\u09A8\u09CD\u09A4
|
||||
STOP=\u09AC\u09A8\u09CD\u09A7 \u0995\u09F0\u0995
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=\u0985\u09AC\u09CD\u09AF\u09BE\u09B9\u09A4 \u09F0\u09BE\u0996\u0995
|
||||
WHILE=while
|
||||
FOR=\u0995\u09BE\u09F0\u09A3\u09C7
|
||||
IN=\u0987\u09A8
|
||||
IF=if
|
||||
OUTPUT=\u0986\u0989\u099F\u09AA\u09C1\u099F
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u09B8\u0981\u099A\u09BE
|
||||
FALSE=\u09AE\u09BF\u099B\u09BE
|
||||
NOT=not
|
||||
AND=and
|
||||
OR=or
|
||||
INPUT=input
|
||||
PRINT=print
|
||||
SLEEP=\u09A8\u09BF\u09A6\u09CD\u09F0\u09BE
|
||||
GLOBAL=\u09AC\u09BF\u09B6\u09CD\u09AC\u09AC\u09CD\u09AF\u09BE\u09AA\u09C0
|
||||
|
||||
# functions
|
||||
RANDOM=\u09AF\u09BE\u09A6\u09C3\u099A\u09CD\u099B\u09BF\u0995
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=\u0997\u09CB\u09B2\u09BE\u0995\u09BE\u09F0
|
||||
ABS=abs
|
||||
COUNT=\u0997\u09A3\u09A8\u09BE
|
||||
SET=set
|
||||
RANGE=\u09AC\u09BF\u09B8\u09CD\u09A4\u09BE\u09F0
|
||||
LIST=list
|
||||
TUPLE=tuple
|
||||
SORTED=\u09AC\u09F0\u09CD\u0997\u09C0\u0995\u09F0\u09A3 \u0995\u09F0\u09BF \u09A5\u09CB\u09F1\u09BE
|
||||
RESUB=sub
|
||||
RESEARCH=\u09B8\u09A8\u09CD\u09A7\u09BE\u09A8 \u0995\u09F0\u0995
|
||||
REFINDALL=findall
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u09AE\u09BF.\u09AE\u09BF.
|
||||
CM=\u099B\u09C7.\u09AE\u09BF.
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u0985\u09A6\u09C3\u09B6\u09CD\u09AF
|
||||
BLACK=\u0995\u09B2\u09BE
|
||||
SILVER=\u09F0\u09C2\u09AA
|
||||
GRAY=gray|grey
|
||||
WHITE=\u09AC\u0997\u09BE
|
||||
MAROON=\u0995\u09C3\u09B7\u09CD\u09A3\u09F0\u0995\u09CD\u09A4\u09AC\u09F0\u09CD\u09A3
|
||||
RED=\u09F0\u0999\u09BE
|
||||
PURPLE=\u099C\u09BE\u09AE\u09C1\u0995\u09B2\u09C0\u09DF\u09BE
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=\u09B8\u09C7\u0989\u099C\u09C0\u09DF\u09BE
|
||||
LIME=\u09A8\u09C7\u09AE\u09C1
|
||||
OLIVE=\u099C\u09B2\u09AB\u09BE\u0987
|
||||
YELLOW=\u09B9\u09BE\u09B2\u09A7\u09C0\u09DF\u09BE
|
||||
NAVY=\u0987\u09B7\u09CE\u09A8\u09C0\u09B2\u09BE
|
||||
BLUE=\u09A8\u09C0\u09B2\u09BE
|
||||
TEAL=\u099F\u09BF\u09B2
|
||||
AQUA=aqua|cyan
|
||||
PINK=\u0997\u09CB\u09B2\u09BE\u09AA\u09C0
|
||||
TOMATO=\u099F\u09AE\u09C7\u099F\u09CB
|
||||
ORANGE=\u09B8\u09C1\u09AE\u09A5\u09C0\u09F0\u09BE
|
||||
GOLD=\u09B8\u09CB\u09A8
|
||||
VIOLET=\u09AC\u09C7\u0999\u09C1\u09A8\u09C0\u09DF\u09BE
|
||||
SKYBLUE=\u0986\u0995\u09BE\u09B6\u09A8\u09C0\u09B2\u09BE
|
||||
CHOCOLATE=\u099A\u0995\u09CB\u09B2\u09C7\u099F
|
||||
BROWN=\u09AE\u09C2\u0997\u09BE
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=\u09A4\u09CD\u09F0\u09C1\u099F\u09BF (\u09B6\u09BE\u09F0\u09C0 %s \u09A4)
|
||||
ERR_ZERODIVISION=\u09B6\u09C1\u09A3\u09CD\u09AF\u09F0\u09C7 \u09B9\u09F0\u09A3 \u0995\u09F0\u09BE \u0964
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s \u098F %s \u09A4\u09F0\u09CD\u0995\u09B8\u09AE\u09C2\u09B9 \u0997\u09CD\u09F0\u09B9\u09A3 \u0995\u09F0\u09C7 (%s \u09A6\u09BF\u09DF\u09BE \u09B9\u09C8\u099B\u09C7)\u0964
|
||||
ERR_BLOCK=\u09A4\u09CD\u09F0\u09C1\u099F\u09BF (\u09AC\u09CD\u09F0\u09C7\u0995\u09C7\u099F\u09B8\u09AE\u09C2\u09B9\u09A4 \u0985\u09A4\u09BF\u09F0\u09BF\u0995\u09CD\u09A4 \u0985\u09A5\u09AC\u09BE \u09B8\u09A8\u09CD\u09A7\u09BE\u09A8\u09B9\u09BF\u09A8 \u09B8\u09CD\u09AA\u09C7\u0987\u099A?)
|
||||
ERR_KEY=\u0985\u099C\u09CD\u099E\u09BE\u09A4 \u0989\u09AA\u09BE\u09A6\u09BE\u09A8: %s
|
||||
ERR_INDEX=\u09B8\u09C2\u099A\u09C0 \u09AC\u09BF\u09B8\u09CD\u09A4\u09BE\u09F0\u09F0 \u09AC\u09BE\u09B9\u09BF\u09F0\u0964
|
||||
|
||||
ERR_STOP=\u09AA\u09CD\u09F0\u0997\u09CD\u09F0\u09BE\u09AE \u0985\u09A8\u09CD\u09A4 \u0995\u09F0\u09BE \u09B9\u09B2:
|
||||
ERR_MAXRECURSION=\u09B8\u09F0\u09CD\u09AC\u09BE\u09A7\u09BF\u0995 \u09F0\u09BF\u0995\u09BE\u09F0\u09CD\u099A\u09A8 \u0997\u09AD\u09BF\u09F0\u09A4\u09BE (%d) \u0985\u09A4\u09BF\u0995\u09CD\u09F0\u09AE \u09B9\u09C8\u099B\u09C7\u0964
|
||||
ERR_MEMORY=\u09AA\u09F0\u09CD\u09AF\u09BE\u09AA\u09CD\u09A4 \u09AE\u09C7\u09AE\u09F0\u09BF \u09A8\u09BE\u0987\u0964
|
||||
ERR_NOTAPROGRAM=\u0986\u09AA\u09C1\u09A8\u09BF \u098F\u0987 \u09B2\u09BF\u0996\u09A8\u09C0 \u09A6\u09B8\u09CD\u09A4\u09BE\u09AC\u09C7\u099C \u099A\u09B2\u09BE\u09AC \u09AC\u09BF\u099A\u09BE\u09F0\u09C7 \u09A8\u09C7?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=avanzar|av
|
||||
BACKWARD=atr\u00E1s|pt
|
||||
TURNLEFT=izquierda|xiraizquierda|xi
|
||||
TURNRIGHT=drecha|xiradrecha|xd
|
||||
PENUP=llapizxubir|lx
|
||||
PENDOWN=llapizbaxar|lb
|
||||
HOME=aniciu
|
||||
POINT=puntu
|
||||
CIRCLE=c\u00EDrculu
|
||||
ELLIPSE=elipse
|
||||
SQUARE=cuadr\u00E1u
|
||||
RECTANGLE=rect\u00E1ngulu
|
||||
LABEL=etiqueta
|
||||
PENCOLOR=llapizcolor|lliniacolor|lc
|
||||
ANY=cualquier
|
||||
PENWIDTH=llapiztama\u00F1u|llapizanchor|lliniaanchor|lt
|
||||
PENSTYLE=llapizestilu|lliniaestilu|le
|
||||
PENJOINT=llapizxunir|lliniaxunir|lx
|
||||
PENCAP=finllapiz|finllinia
|
||||
NONE=deng\u00FAn
|
||||
BEVEL=moldura
|
||||
MITER=inglete
|
||||
ROUNDED=redondu
|
||||
SOLID=s\u00F3lidu
|
||||
DASH=discontinuu
|
||||
DOTTED=punti\u00E1u
|
||||
CLOSE=zarrar
|
||||
FILL=rellenar
|
||||
FILLCOLOR=colorrellenu|cr
|
||||
FILLTRANSPARENCY=tresparencia.rellenu
|
||||
PENTRANSPARENCY=tresparenciall\u00E1piz|tresparenciallinia
|
||||
FILLSTYLE=estiluderrellenu
|
||||
FONTCOLOR=colorlletra|colortestu
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=tama\u00F1ulletra|tama\u00F1utestu|altortestu
|
||||
FONTWEIGHT=pesudefonte
|
||||
FONTSTYLE=estiludefonte
|
||||
BOLD=gruesu
|
||||
ITALIC=cursiva
|
||||
UPRIGHT=normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=familiafonte
|
||||
CLEARSCREEN=llimpiapantalla|lp
|
||||
TEXT=testu
|
||||
HIDETURTLE=anubretortuga|anubrime|at
|
||||
SHOWTURTLE=amuesatortuga|veme|vt
|
||||
POSITION=posici\u00F3n|pos|dirposici\u00F3n
|
||||
HEADING=direici\u00F3n|pondireici\u00F3n|dir
|
||||
PAGESIZE=tama\u00F1upaxina
|
||||
GROUP=figura|fig
|
||||
|
||||
# control structures
|
||||
|
||||
TO=a
|
||||
END=final
|
||||
STOP=parar
|
||||
REPEAT=repetir|pasiempres
|
||||
REPCOUNT=repetirvegaes
|
||||
BREAK=saltu
|
||||
CONTINUE=siguir
|
||||
WHILE=mentanto
|
||||
FOR=pa
|
||||
IN=en
|
||||
IF=si
|
||||
OUTPUT=salida
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=braero
|
||||
FALSE=falso
|
||||
NOT=non
|
||||
AND=y
|
||||
OR=o
|
||||
INPUT=entrada
|
||||
PRINT=imprentar
|
||||
SLEEP=dormir
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=aleatoriu
|
||||
INT=int
|
||||
FLOAT=flotante
|
||||
STR=str
|
||||
SQRT=raiz
|
||||
LOG10=log10
|
||||
SIN=sen
|
||||
COS=cos
|
||||
ROUND=redondu
|
||||
ABS=abs
|
||||
COUNT=cont\u00E9u
|
||||
SET=establecer
|
||||
RANGE=estaya
|
||||
LIST=llista
|
||||
TUPLE=tupla
|
||||
SORTED=ordenao
|
||||
RESUB=sub
|
||||
RESEARCH=guetar
|
||||
REFINDALL=alcontrartoo
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=,
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=prietu
|
||||
SILVER=plata
|
||||
GRAY=buxu
|
||||
WHITE=blancu
|
||||
MAROON=marr\u00F3n
|
||||
RED=bermeyu
|
||||
PURPLE=p\u00FArpura
|
||||
FUCHSIA=fucsia|maxenta
|
||||
GREEN=verde
|
||||
LIME=llima
|
||||
OLIVE=oliva
|
||||
YELLOW=mariellu
|
||||
NAVY=azulmar\u00EDn|mar\u00EDn
|
||||
BLUE=azul
|
||||
TEAL=xade
|
||||
AQUA=agua|cian
|
||||
PINK=rosa
|
||||
TOMATO=tomate
|
||||
ORANGE=naranxa
|
||||
GOLD=dor\u00E1u
|
||||
VIOLET=violeta
|
||||
SKYBLUE=celeste
|
||||
CHOCOLATE=chocolate
|
||||
BROWN=marr\u00F3n
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Fallu (na ringlera %s)
|
||||
ERR_ZERODIVISION=Divisi\u00F3n por cero.
|
||||
ERR_NAME=Desconozse'l nome: \u00AB%s\u00BB.
|
||||
ERR_ARGUMENTS=%s lleva %s argumentos (%s daos).
|
||||
ERR_BLOCK=Error (\u00BFsobren o falten espacios nos par\u00E9ntesis?)
|
||||
ERR_KEY=Desconozse l'elementu: %s
|
||||
ERR_INDEX=\u00CDndiz fuera de rangu.
|
||||
|
||||
ERR_STOP=Programa fin\u00E1u:
|
||||
ERR_MAXRECURSION=fondura m\u00E1xima recursiva (%d) perpasada.
|
||||
ERR_MEMORY=nun hai memoria bastante.
|
||||
ERR_NOTAPROGRAM=\u00BFQuier executar esti documentu de testu?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=\u043D\u0430\u043F\u0435\u0440\u0430\u0434|\u043D\u043F
|
||||
BACKWARD=\u043D\u0430\u0437\u0430\u0434|\u043D\u0437
|
||||
TURNLEFT=\u0443\u043B\u0435\u0432\u0430|\u043F\u0430\u0432\u0430\u0440\u043E\u0442_\u0443\u043B\u0435\u0432\u0430|\u043B\u0432
|
||||
TURNRIGHT=\u0443\u043F\u0440\u0430\u0432\u0430|\u043F\u0430\u0432\u0430\u0440\u043E\u0442_\u0443\u043F\u0440\u0430\u0432\u0430|\u043F\u0440
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=\u043F\u0430\u0447\u0430\u0442\u0430\u043A
|
||||
POINT=\u043F\u0443\u043D\u043A\u0442
|
||||
CIRCLE=\u0430\u043A\u0440\u0443\u0436\u044B\u043D\u0430
|
||||
ELLIPSE=\u044D\u043B\u0456\u043F\u0441
|
||||
SQUARE=\u043A\u0432\u0430\u0434\u0440\u0430\u0442
|
||||
RECTANGLE=\u043F\u0440\u0430\u043C\u0430\u0432\u0443\u0433\u043E\u043B\u044C\u043D\u0456\u043A
|
||||
LABEL=\u043C\u0435\u0442\u043A\u0430
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=\u0441\u0442\u044B\u043B\u044C_\u043F\u044F\u0440\u0430|\u0441\u0442\u044B\u043B\u044C_\u043B\u0456\u043D\u0456\u0456
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u043D\u044F\u043C\u0430
|
||||
BEVEL=\u0441\u043A\u043E\u0441
|
||||
MITER=miter
|
||||
ROUNDED=\u043A\u0440\u0443\u0433\u043B\u044B
|
||||
SOLID=\u0441\u0443\u0446\u044D\u043B\u044C\u043D\u044B
|
||||
DASH=\u0440\u044B\u0441\u043A\u0456
|
||||
DOTTED=\u043F\u0443\u043D\u043A\u0446\u0456\u0440
|
||||
CLOSE=\u0437\u0430\u043A\u0440\u044B\u0446\u044C
|
||||
FILL=\u0437\u0430\u043F\u0430\u045E\u043D\u0435\u043D\u043D\u0435
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=\u0441\u0442\u044B\u043B\u044C_\u0437\u0430\u043B\u0456\u045E\u043A\u0456
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=\u0441\u0442\u044B\u043B\u044C_\u0448\u0440\u044B\u0444\u0442\u0443
|
||||
BOLD=\u0446\u0451\u043C\u043D\u044B
|
||||
ITALIC=\u043A\u0443\u0440\u0441\u0456\u045E
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=\u0437\u0432\u044B\u0447\u0430\u0439\u043D\u044B
|
||||
FONTFAMILY=\u0433\u0430\u0440\u043D\u0456\u0442\u0443\u0440\u0430
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u0442\u044D\u043A\u0441\u0442
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=\u043F\u0430\u043C\u0435\u0440\u044B_\u0441\u0442\u0430\u0440\u043E\u043D\u043A\u0456
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=end
|
||||
STOP=stop
|
||||
REPEAT=\u043F\u0430\u045E\u0442\u0430\u0440\u0430\u0446\u044C|\u0431\u044F\u0441\u043A\u043E\u043D\u0446\u0430
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=\u043F\u0440\u0430\u0446\u044F\u0433\u0432\u0430\u0446\u044C
|
||||
WHILE=\u043F\u0430\u043A\u0443\u043B\u044C
|
||||
FOR=\u0434\u043B\u044F
|
||||
IN=\u0443
|
||||
IF=\u043A\u0430\u043B\u0456
|
||||
OUTPUT=\u0432\u044B\u0432\u0430\u0434
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u0441\u0430\u043F\u0440\u0430\u045E\u0434\u043D\u0430
|
||||
FALSE=\u043D\u0435\u0441\u0430\u043F\u0440\u0430\u045E\u0434\u043D\u0430
|
||||
NOT=\u043D\u0435
|
||||
AND=\u0456
|
||||
OR=\u0430\u0431\u043E
|
||||
INPUT=\u0443\u0432\u043E\u0434
|
||||
PRINT=\u0434\u0440\u0443\u043A
|
||||
SLEEP=\u0447\u0430\u043A\u0430\u0446\u044C
|
||||
GLOBAL=\u0430\u0433\u0443\u043B\u044C\u043D\u044B
|
||||
|
||||
# functions
|
||||
RANDOM=\u0432\u044B\u043F\u0430\u0434\u043A\u043E\u0432\u0430
|
||||
INT=\u0446\u044D\u043B\u0430\u0435
|
||||
FLOAT=\u0434\u0440\u043E\u0431\u0430\u0432\u0430\u0435
|
||||
STR=\u0440\u0430\u0434\u043E\u043A
|
||||
SQRT=\u043A\u043E\u0440\u0430\u043D\u044C
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=\u043A\u0440\u0443\u0433\u043B\u044B
|
||||
ABS=abs
|
||||
COUNT=count
|
||||
SET=set
|
||||
RANGE=range
|
||||
LIST=\u0441\u043F\u0456\u0441
|
||||
TUPLE=\u043A\u0430\u0440\u0442\u044D\u0436
|
||||
SORTED=sorted
|
||||
RESUB=sub
|
||||
RESEARCH=\u0437\u043D\u0430\u0439\u0441\u0446\u0456
|
||||
REFINDALL=findall
|
||||
MIN=\u043C\u0456\u043D
|
||||
MAX=\u043C\u0430\u043A\u0441
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u043C\u043C
|
||||
CM=\u0441\u043C
|
||||
PT=\u043F\u0442
|
||||
INCH=\u0446\u0430\u043B\u044C|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u043D\u044F\u0431\u0430\u0447\u043D\u044B
|
||||
BLACK=\u0447\u043E\u0440\u043D\u044B
|
||||
SILVER=\u0441\u0440\u044D\u0431\u043D\u044B
|
||||
GRAY=\u0448\u044D\u0440\u044B
|
||||
WHITE=\u0431\u0435\u043B\u044B
|
||||
MAROON=\u0431\u0430\u0440\u0434\u043E\u0432\u044B
|
||||
RED=\u0447\u044B\u0440\u0432\u043E\u043D\u044B
|
||||
PURPLE=\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B
|
||||
FUCHSIA=\u0444\u0443\u043A\u0441\u0456\u044F|\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B
|
||||
GREEN=\u0437\u044F\u043B\u0451\u043D\u044B
|
||||
LIME=\u044F\u0440\u043A\u0430-\u0437\u044F\u043B\u0451\u043D\u044B
|
||||
OLIVE=\u0430\u043B\u0456\u045E\u043A\u0430\u0432\u044B
|
||||
YELLOW=\u0436\u043E\u045E\u0442\u044B
|
||||
NAVY=\u0446\u0451\u043C\u043D\u0430-\u0441\u0456\u043D\u0456
|
||||
BLUE=\u0441\u0456\u043D\u0456
|
||||
TEAL=\u0431\u0456\u0440\u0443\u0437\u043E\u0432\u044B
|
||||
AQUA=\u0431\u043B\u0430\u043A\u0456\u0442\u043D\u044B
|
||||
PINK=\u0440\u0443\u0436\u043E\u0432\u044B
|
||||
TOMATO=\u0442\u0430\u043C\u0430\u0442
|
||||
ORANGE=\u0430\u0440\u0430\u043D\u0436\u0430\u0432\u044B
|
||||
GOLD=\u0437\u0430\u043B\u0430\u0442\u044B
|
||||
VIOLET=\u0431\u044D\u0437\u0430\u0432\u044B
|
||||
SKYBLUE=\u043D\u044F\u0431\u0435\u0441\u043D\u0430-\u0431\u043B\u0430\u043A\u0456\u0442\u043D\u044B
|
||||
CHOCOLATE=\u0448\u0430\u043A\u0430\u043B\u0430\u0434\u043D\u044B
|
||||
BROWN=\u043A\u0430\u0440\u044B\u0447\u043D\u0435\u0432\u044B
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=\u041F\u0430\u043C\u044B\u043B\u043A\u0430 (\u0443 \u0440\u0430\u0434\u043A\u0443 %s)
|
||||
ERR_ZERODIVISION=\u0414\u0437\u044F\u043B\u0435\u043D\u043D\u0435 \u043D\u0430 \u043D\u0443\u043B\u044C.
|
||||
ERR_NAME=\u041D\u0435\u0432\u044F\u0434\u043E\u043C\u0430\u044F \u043D\u0430\u0437\u0432\u0430: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s \u043F\u0440\u044B\u043C\u0430\u0435 %s \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u0430\u045E (\u043F\u0430\u0434\u0430\u0434\u0437\u0435\u043D\u0430 %s).
|
||||
ERR_BLOCK=\u041F\u0430\u043C\u044B\u043B\u043A\u0430 (\u043B\u0456\u0448\u043D\u0456\u044F \u0446\u0456 \u043D\u0435\u0434\u0430\u0441\u0442\u0430\u0442\u043A\u043E\u0432\u044B\u044F \u043F\u0440\u0430\u0431\u0435\u043B\u044B \u045E \u0434\u0443\u0436\u043A\u0430\u0445?)
|
||||
ERR_KEY=\u041D\u0435\u0432\u044F\u0434\u043E\u043C\u044B \u044D\u043B\u0435\u043C\u0435\u043D\u0442: %s
|
||||
ERR_INDEX=\u0406\u043D\u0434\u044D\u043A\u0441 \u043F\u0430-\u0437\u0430 \u0430\u0431\u0441\u044F\u0433\u0430\u043C.
|
||||
|
||||
ERR_STOP=\u041F\u0440\u0430\u0433\u0440\u0430\u043C\u0430 \u0441\u043F\u044B\u043D\u0435\u043D\u0430:
|
||||
ERR_MAXRECURSION=\u043F\u0435\u0440\u0430\u0432\u044B\u0448\u0430\u043D\u0430 \u043C\u0430\u043A\u0441\u0456\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0433\u043B\u044B\u0431\u0456\u043D\u044F \u0440\u044D\u043A\u0443\u0440\u0441\u0456\u0456 (%d).
|
||||
ERR_MEMORY=\u043D\u0435\u0434\u0430\u0441\u0442\u0430\u0442\u043A\u043E\u0432\u0430 \u043F\u0430\u043C\u044F\u0446\u0456.
|
||||
ERR_NOTAPROGRAM=\u0412\u044B\u043A\u0430\u043D\u0430\u0446\u044C \u0433\u044D\u0442\u044B \u0442\u044D\u043A\u0441\u0442\u0430\u0432\u044B \u0434\u0430\u043A\u0443\u043C\u0435\u043D\u0442?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=home
|
||||
POINT=point
|
||||
CIRCLE=circle
|
||||
ELLIPSE=ellipse
|
||||
SQUARE=square
|
||||
RECTANGLE=rectangle
|
||||
LABEL=label
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=none
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=round
|
||||
SOLID=solid
|
||||
DASH=dashed
|
||||
DOTTED=dotted
|
||||
CLOSE=close
|
||||
FILL=fill
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=bold
|
||||
ITALIC=italic
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=text
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=end
|
||||
STOP=stop
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=continue
|
||||
WHILE=while
|
||||
FOR=for
|
||||
IN=in
|
||||
IF=if
|
||||
OUTPUT=output
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=true
|
||||
FALSE=false
|
||||
NOT=not
|
||||
AND=and
|
||||
OR=or
|
||||
INPUT=input
|
||||
PRINT=print
|
||||
SLEEP=sleep
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=random
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=round
|
||||
ABS=abs
|
||||
COUNT=count
|
||||
SET=set
|
||||
RANGE=range
|
||||
LIST=list
|
||||
TUPLE=tuple
|
||||
SORTED=sorted
|
||||
RESUB=sub
|
||||
RESEARCH=search
|
||||
REFINDALL=findall
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=black
|
||||
SILVER=silver
|
||||
GRAY=gray|grey
|
||||
WHITE=white
|
||||
MAROON=maroon
|
||||
RED=red
|
||||
PURPLE=purple
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=green
|
||||
LIME=lime
|
||||
OLIVE=olive
|
||||
YELLOW=yellow
|
||||
NAVY=navy
|
||||
BLUE=blue
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=pink
|
||||
TOMATO=tomato
|
||||
ORANGE=orange
|
||||
GOLD=gold
|
||||
VIOLET=violet
|
||||
SKYBLUE=skyblue
|
||||
CHOCOLATE=chocolate
|
||||
BROWN=brown
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=\u0413\u0440\u0435\u0448\u043A\u0430 (\u0432 \u0440\u0435\u0434 %s)
|
||||
ERR_ZERODIVISION=\u0414\u0435\u043B\u0435\u043D\u0438\u0435 \u043D\u0430 \u043D\u0443\u043B\u0430.
|
||||
ERR_NAME=\u041D\u0435\u043F\u043E\u0437\u043D\u0430\u0442\u043E \u0438\u043C\u0435: \u201E%s\u201C.
|
||||
ERR_ARGUMENTS=%s \u043F\u0440\u0438\u0435\u043C\u0430 %s \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u0430 (\u043F\u043E\u0434\u0430\u0434\u0435\u043D\u0438 \u0441\u0430 %s).
|
||||
ERR_BLOCK=\u0413\u0440\u0435\u0448\u043A\u0430 (\u0438\u0437\u043B\u0438\u0448\u043D\u0438 \u0438\u043B\u0438 \u043B\u0438\u043F\u0441\u0432\u0430\u0449\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B\u0438 \u043F\u0440\u0438 \u0441\u043A\u043E\u0431\u0438?)
|
||||
ERR_KEY=\u041D\u0435\u043F\u043E\u0437\u043D\u0430\u0442 \u0435\u043B\u0435\u043C\u0435\u043D\u0442: %s
|
||||
ERR_INDEX=\u0418\u043D\u0434\u0435\u043A\u0441 \u0438\u0437\u0432\u044A\u043D \u043E\u0431\u0445\u0432\u0430\u0442\u0430.
|
||||
|
||||
ERR_STOP=\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u0430\u0442\u0430 \u0435 \u043F\u0440\u0435\u043A\u0440\u0430\u0442\u0435\u043D\u0430:
|
||||
ERR_MAXRECURSION=\u043D\u0430\u0434\u0445\u0432\u044A\u0440\u043B\u0435\u043D\u0430 \u0435 \u043C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u044A\u043B\u0431\u043E\u0447\u0438\u043D\u0430 \u043D\u0430 \u0440\u0435\u043A\u0443\u0440\u0441\u0438\u044F (%d).
|
||||
ERR_MEMORY=\u043D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u044A\u0447\u043D\u0430 \u043F\u0430\u043C\u0435\u0442.
|
||||
ERR_NOTAPROGRAM=\u0416\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043F\u044A\u043B\u043D\u0438 \u0442\u043E\u0437\u0438 \u0442\u0435\u043A\u0441\u0442\u043E\u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=home
|
||||
POINT=point
|
||||
CIRCLE=circle
|
||||
ELLIPSE=ellipse
|
||||
SQUARE=square
|
||||
RECTANGLE=rectangle
|
||||
LABEL=label
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0995\u09CB\u09A8\u099F\u09BF \u09A8\u09BE
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=round
|
||||
SOLID=solid
|
||||
DASH=dashed
|
||||
DOTTED=dotted
|
||||
CLOSE=close
|
||||
FILL=fill
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=\u0997\u09BE\u09DD
|
||||
ITALIC=italic
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=\u09B8\u09BE\u09A7\u09BE\u09B0\u09A3
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u09AA\u09BE\u09A0\u09CD\u09AF
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=\u09B6\u09C7\u09B7
|
||||
STOP=stop
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=continue
|
||||
WHILE=while
|
||||
FOR=\u099C\u09A8\u09CD\u09AF
|
||||
IN=\u0987\u099E\u09CD\u099A\u09BF
|
||||
IF=if
|
||||
OUTPUT=output
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u09B8\u09A4\u09CD\u09AF
|
||||
FALSE=\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE
|
||||
NOT=not
|
||||
AND=\u098F\u09AC\u0982
|
||||
OR=\u0985\u09A5\u09AC\u09BE
|
||||
INPUT=input
|
||||
PRINT=print
|
||||
SLEEP=sleep
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=random
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=round
|
||||
ABS=abs
|
||||
COUNT=count
|
||||
SET=set
|
||||
RANGE=\u09AA\u09B0\u09BF\u09B8\u09B0
|
||||
LIST=list
|
||||
TUPLE=tuple
|
||||
SORTED=\u09AC\u09BF\u09A8\u09CD\u09AF\u09B8\u09CD\u09A4
|
||||
RESUB=sub
|
||||
RESEARCH=search
|
||||
REFINDALL=findall
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u09AE\u09BF\u09AE\u09BF
|
||||
CM=\u09B8\u09C7\u09AE\u09BF
|
||||
PT=\u09AA\u09DF\u09C7\u09A8\u09CD\u099F
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=\u0995\u09BE\u09B2\u09CB
|
||||
SILVER=silver
|
||||
GRAY=gray|grey
|
||||
WHITE=white
|
||||
MAROON=maroon
|
||||
RED=red
|
||||
PURPLE=purple
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=green
|
||||
LIME=lime
|
||||
OLIVE=olive
|
||||
YELLOW=yellow
|
||||
NAVY=navy
|
||||
BLUE=blue
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=pink
|
||||
TOMATO=tomato
|
||||
ORANGE=orange
|
||||
GOLD=gold
|
||||
VIOLET=violet
|
||||
SKYBLUE=skyblue
|
||||
CHOCOLATE=chocolate
|
||||
BROWN=brown
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Error (in line %s)
|
||||
ERR_ZERODIVISION=\u09B6\u09C2\u09A8\u09CD\u09AF \u09A6\u09BF\u09AF\u09BC\u09C7 \u09AC\u09BF\u09AD\u09BE\u099C\u09A8\u0964
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s takes %s arguments (%s given).
|
||||
ERR_BLOCK=Error (extra or missing spaces at brackets?)
|
||||
ERR_KEY=Unknown element: %s
|
||||
ERR_INDEX=Index out of range.
|
||||
|
||||
ERR_STOP=Program terminated:
|
||||
ERR_MAXRECURSION=maximum recursion depth (%d) exceeded.
|
||||
ERR_MEMORY=not enough memory.
|
||||
ERR_NOTAPROGRAM=Do you want to run this text document?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=Home
|
||||
POINT=\u09AA\u09DF\u09C7\u09A8\u09CD\u099F
|
||||
CIRCLE=\u09AC\u09C3\u09A4\u09CD\u09A4
|
||||
ELLIPSE=\u0989\u09AA\u09AC\u09C3\u09A4\u09CD\u09A4
|
||||
SQUARE=\u09AC\u09B0\u09CD\u0997\u0995\u09CD\u09B7\u09C7\u09A4\u09CD\u09B0
|
||||
RECTANGLE=\u0986\u09AF\u09BC\u09A4\u0995\u09CD\u09B7\u09C7\u09A4\u09CD\u09B0
|
||||
LABEL=\u09B2\u09C7\u09AC\u09C7\u09B2
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=\u09AF\u09C7\u0995\u09CB\u09A8\u09CB
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0995\u09CB\u09A8\u099F\u09BF \u09A8\u09BE
|
||||
BEVEL=\u09B8\u09CD\u09A4\u09B0
|
||||
MITER=miter
|
||||
ROUNDED=\u09B0\u09BE\u0989\u09A8\u09CD\u09A1
|
||||
SOLID=\u09A8\u09BF\u09B0\u09C7\u099F
|
||||
DASH=\u09A1\u09CD\u09AF\u09BE\u09B6\u09AF\u09C1\u0995\u09CD\u09A4
|
||||
DOTTED=\u09A1\u099F\u09C7\u09A1
|
||||
CLOSE=\u09AC\u09A8\u09CD\u09A7
|
||||
FILL=\u09AA\u09C2\u09B0\u09A3 \u0995\u09B0\u09C1\u09A8
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=\u09AD\u09B0\u09BE\u099F \u09B6\u09C8\u09B2\u09C0
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=\u09AB\u09A8\u09CD\u099F\u09C7\u09B0 \u09AA\u09C1\u09B0\u09C1\u09A4\u09CD\u09AC
|
||||
FONTSTYLE=\u09B9\u09B0\u09AB-\u09B6\u09C8\u09B2\u09C0
|
||||
BOLD=\u0997\u09BE\u09DD
|
||||
ITALIC=\u09A4\u09BF\u09B0\u09CD\u09AF\u0995
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=\u09B8\u09BE\u09A7\u09BE\u09B0\u09A3
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u09AA\u09BE\u09A0\u09CD\u09AF
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=\u0995\u09BE\u0997\u099C\u09C7\u09B0 \u09AE\u09BE\u09AA
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=\u09AA\u09CD\u09B0\u09A4\u09BF
|
||||
END=\u09B6\u09C7\u09B7
|
||||
STOP=\u09A5\u09BE\u09AE\u09BE\u09A8
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=\u09AC\u09BF\u09B0\u09A4\u09BF
|
||||
CONTINUE=\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0 (~C)
|
||||
WHILE=\u09AF\u09C7\u0996\u09BE\u09A8\u09C7
|
||||
FOR=\u099C\u09A8\u09CD\u09AF
|
||||
IN=\u0987\u099E\u09CD\u099A\u09BF
|
||||
IF=\u09AF\u09A6\u09BF
|
||||
OUTPUT=\u0986\u0989\u099F\u09AA\u09C1\u099F
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u09B8\u09A4\u09CD\u09AF
|
||||
FALSE=\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE
|
||||
NOT=\u09A8\u09DF
|
||||
AND=\u098F\u09AC\u0982
|
||||
OR=\u0985\u09A5\u09AC\u09BE
|
||||
INPUT=\u0987\u09A8\u09AA\u09C1\u099F
|
||||
PRINT=\u09AE\u09C1\u09A6\u09CD\u09B0\u09A3
|
||||
SLEEP=sleep
|
||||
GLOBAL=\u0997\u09CD\u09B2\u09CB\u09AC\u09BE\u09B2
|
||||
|
||||
# functions
|
||||
RANDOM=\u098F\u09B2\u09CB\u09AE\u09C7\u09B2\u09CB
|
||||
INT=int
|
||||
FLOAT=\u09AD\u09BE\u09B8\u09AE\u09BE\u09A8
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=\u09B0\u09BE\u0989\u09A8\u09CD\u09A1
|
||||
ABS=\u099F\u09CD\u09AF\u09BE\u09AC
|
||||
COUNT=count
|
||||
SET=\u09B8\u09C7\u099F
|
||||
RANGE=\u09AA\u09B0\u09BF\u09B8\u09B0
|
||||
LIST=\u09A4\u09BE\u09B2\u09BF\u0995\u09BE
|
||||
TUPLE=tuple
|
||||
SORTED=\u09AC\u09BF\u09A8\u09CD\u09AF\u09B8\u09CD\u09A4
|
||||
RESUB=sub
|
||||
RESEARCH=\u0985\u09A8\u09C1\u09B8\u09A8\u09CD\u09A7\u09BE\u09A8
|
||||
REFINDALL=findall
|
||||
MIN=\u09B8\u09B0\u09CD\u09AC\u09A8\u09BF\u09AE\u09CD\u09A8
|
||||
MAX=\u09B8\u09B0\u09CD\u09AC\u09CB\u099A\u09CD\u099A
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u09AE\u09BF\u09AE\u09BF
|
||||
CM=\u09B8\u09C7\u09AE\u09BF
|
||||
PT=\u09AA\u09DF\u09C7\u09A8\u09CD\u099F
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u0985\u09A6\u09C3\u09B6\u09CD\u09AF
|
||||
BLACK=\u0995\u09BE\u09B2\u09CB
|
||||
SILVER=\u09B0\u09C2\u09AA\u09BE\u09B2\u09C0
|
||||
GRAY=gray|grey
|
||||
WHITE=\u09B8\u09BE\u09A6\u09BE
|
||||
MAROON=\u09AE\u09C7\u09B0\u09C1\u09A8
|
||||
RED=\u09B2\u09BE\u09B2
|
||||
PURPLE=\u0997\u09CB\u09B2\u09BE\u09AA\u09C0
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=\u09B8\u09AC\u09C1\u099C
|
||||
LIME=\u09B8\u09AE\u09AF\u09BC
|
||||
OLIVE=\u099C\u09B2\u09AA\u09BE\u0987 \u09B0\u0982
|
||||
YELLOW=\u09B9\u09B2\u09C1\u09A6
|
||||
NAVY=\u0985\u09BE\u0995\u09BE\u09B6\u09BF
|
||||
BLUE=\u09A8\u09C0\u09B2
|
||||
TEAL=\u099F\u09BF\u09B2
|
||||
AQUA=aqua|cyan
|
||||
PINK=\u09B2\u09BF\u0982\u0995
|
||||
TOMATO=\u099F\u09CB\u09AE\u09BE\u099F\u09CB
|
||||
ORANGE=\u09AA\u09B0\u09BF\u09B8\u09B0
|
||||
GOLD=\u0997\u09BE\u09DD
|
||||
VIOLET=\u09AC\u09C7\u0997\u09C1\u09A8\u09C0
|
||||
SKYBLUE=\u0985\u09BE\u0995\u09BE\u09B6\u09BF \u09A8\u09C0\u09B2
|
||||
CHOCOLATE=\u099A\u0995\u09CB\u09B2\u09C7\u099F
|
||||
BROWN=\u09AC\u09BE\u09A6\u09BE\u09AE\u09BF
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=\u09A4\u09CD\u09B0\u09C1\u099F\u09BF (\u0987\u09A8 \u09B2\u09BE\u0987\u09A8 %s)
|
||||
ERR_ZERODIVISION=\u09B6\u09C2\u09A8\u09CD\u09AF \u09A6\u09BF\u09AF\u09BC\u09C7 \u09AC\u09BF\u09AD\u09BE\u099C\u09A8\u0964
|
||||
ERR_NAME=\u0985\u099C\u09BE\u09A8\u09BE \u09A8\u09BE\u09AE: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s takes %s arguments (%s given).
|
||||
ERR_BLOCK=\u09A4\u09CD\u09B0\u09C1\u099F\u09BF (\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u0995\u09C7\u099F\u09C7 \u0985\u09A4\u09BF\u09B0\u09BF\u0995\u09CD\u09A4 \u09AC\u09BE \u0985\u09A8\u09C1\u09AA\u09B8\u09CD\u09A5\u09BF\u09A4 \u09B8\u09CD\u09AA\u09C7\u09B8?)
|
||||
ERR_KEY=\u0985\u099C\u09BE\u09A8\u09BE \u09B8\u09CD\u09AC\u09A4\u09CD\u09AC\u09BE %s
|
||||
ERR_INDEX=\u09B8\u09C2\u099A\u09BF \u09AE\u09BE\u09A8 \u09B8\u09C0\u09AE\u09BE\u09AC\u09B9\u09BF\u09B0\u09CD\u09AD\u09C2\u09A4\u0964
|
||||
|
||||
ERR_STOP=\u09AA\u09CD\u09B0\u09CB\u0997\u09CD\u09B0\u09BE\u09AE \u09B8\u09BE\u09AE\u09DF\u09BF\u0995 \u09AD\u09BE\u09AC\u09C7 \u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09BE \u09B9\u09DF\u09C7\u099B\u09C7:
|
||||
ERR_MAXRECURSION=\u09B8\u09B0\u09CD\u09AC\u09BE\u09A7\u09BF\u0995 \u09B0\u09BF\u0995\u09BE\u09B0\u09B8\u09BF\u09DF\u09A8 \u09A1\u09C7\u09AA\u09A5 (%d) \u099B\u09BE\u09DC\u09BF\u09DF\u09C7 \u0997\u09C7\u099B\u09C7\u0964
|
||||
ERR_MEMORY=\u0985\u09AA\u09CD\u09B0\u09A4\u09C1\u09B2 \u09AE\u09C7\u09AE\u09B0\u09BF\u0964
|
||||
ERR_NOTAPROGRAM=\u0985\u09BE\u09AA\u09A8\u09BF \u0995\u09BF \u098F\u0987 \u09AA\u09BE\u09A0\u09CD\u09AF \u09A8\u09A5\u09BF \u099A\u09BE\u09B2\u09BE\u09A4\u09C7 \u099A\u09BE\u09A8?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=home
|
||||
POINT=point
|
||||
CIRCLE=circle
|
||||
ELLIPSE=ellipse
|
||||
SQUARE=square
|
||||
RECTANGLE=rectangle
|
||||
LABEL=label
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0F58\u0F7A\u0F51\u0F0B\u0F54\u0F0D
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=round
|
||||
SOLID=solid
|
||||
DASH=dashed
|
||||
DOTTED=dotted
|
||||
CLOSE=close
|
||||
FILL=fill
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=bold
|
||||
ITALIC=italic
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=text
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=end_period
|
||||
STOP=stop
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=continue
|
||||
WHILE=while
|
||||
FOR=\u0F63\u0F0B\u0F66\u0FA4\u0FB1\u0F7C\u0F51\u0F0D
|
||||
IN=\u0F51\u0F56\u0FB1\u0F72\u0F53\u0F0B\u0F5A\u0F74\u0F53\u0F0D
|
||||
IF=if
|
||||
OUTPUT=output
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=true
|
||||
FALSE=false
|
||||
NOT=not
|
||||
AND=and
|
||||
OR=\u0F61\u0F44\u0F0B\u0F53\u0F0D
|
||||
INPUT=input
|
||||
PRINT=print
|
||||
SLEEP=sleep
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=random
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=round
|
||||
ABS=abs
|
||||
COUNT=count
|
||||
SET=set
|
||||
RANGE=range
|
||||
LIST=list
|
||||
TUPLE=tuple
|
||||
SORTED=range_lookup
|
||||
RESUB=sub
|
||||
RESEARCH=search
|
||||
REFINDALL=findall
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=\u0F67\u0F60\u0F72\u0F0B\u0F66\u0FA8\u0F72\u0F0D
|
||||
CM=\u0F63\u0F72\u0F60\u0F72\u0F0B\u0F66\u0FA8\u0F72\u0F0D
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=black
|
||||
SILVER=silver
|
||||
GRAY=gray|grey
|
||||
WHITE=white
|
||||
MAROON=maroon
|
||||
RED=red
|
||||
PURPLE=purple
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=green
|
||||
LIME=lime
|
||||
OLIVE=olive
|
||||
YELLOW=yellow
|
||||
NAVY=navy
|
||||
BLUE=blue
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=pink
|
||||
TOMATO=tomato
|
||||
ORANGE=orange
|
||||
GOLD=gold
|
||||
VIOLET=violet
|
||||
SKYBLUE=skyblue
|
||||
CHOCOLATE=chocolate
|
||||
BROWN=brown
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Error (in line %s)
|
||||
ERR_ZERODIVISION=\u0F40\u0FB3\u0F51\u0F0B\u0F40\u0F7C\u0F62\u0F0B\u0F55\u0F74\u0F51\u0F0D
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s takes %s arguments (%s given).
|
||||
ERR_BLOCK=Error (extra or missing spaces at brackets?)
|
||||
ERR_KEY=Unknown element: %s
|
||||
ERR_INDEX=Index out of range.
|
||||
|
||||
ERR_STOP=Program terminated:
|
||||
ERR_MAXRECURSION=maximum recursion depth (%d) exceeded.
|
||||
ERR_MEMORY=not enough memory.
|
||||
ERR_NOTAPROGRAM=Do you want to run this text document?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=war-raok|fd
|
||||
BACKWARD=war-gil|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=dehou|trotudehou|de
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=Degemer
|
||||
POINT=poent
|
||||
CIRCLE=kelc'h
|
||||
ELLIPSE=elipsenn
|
||||
SQUARE=karrez
|
||||
RECTANGLE=reizhkorneg
|
||||
LABEL=tikedenn
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pennkreion|pennlinenn
|
||||
NONE=tra ebet
|
||||
BEVEL=beskell
|
||||
MITER=garan
|
||||
ROUNDED=ront
|
||||
SOLID=unvan
|
||||
DASH=gourzhello\u00F9
|
||||
DOTTED=pikennaoueg
|
||||
CLOSE=serri\u00F1
|
||||
FILL=leunia\u00F1
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=boullderleunia\u00F1
|
||||
PENTRANSPARENCY=boullderkreion|boullderlinenn
|
||||
FILLSTYLE=stil leunia\u00F1
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=lard
|
||||
FONTSTYLE=stil an nodrezh
|
||||
BOLD=Tev
|
||||
ITALIC=stouet
|
||||
UPRIGHT=a-serzh|normal
|
||||
NORMAL=Reizh
|
||||
FONTFAMILY=spletad nodrezho\u00F9
|
||||
CLEARSCREEN=skarzha\u00F1skramm|cs
|
||||
TEXT=testenn
|
||||
HIDETURTLE=kuzhatbaot|ht|hideme
|
||||
SHOWTURTLE=diskouezbaot|st|showme
|
||||
POSITION=lec'hiadur|pos|setpos
|
||||
HEADING=talbenn|setheading|seth
|
||||
PAGESIZE=ment ar bajenn
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=e
|
||||
END=Marevezh echui\u00F1
|
||||
STOP=arsavi\u00F1
|
||||
REPEAT=arren|forever
|
||||
REPCOUNT=arren ar gont
|
||||
BREAK=rannadur
|
||||
CONTINUE=kenderc'hel
|
||||
WHILE=e pad ma
|
||||
FOR=evit
|
||||
IN=e
|
||||
IF=mar
|
||||
OUTPUT=ec'hankad
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=gwir
|
||||
FALSE=diwir
|
||||
NOT=ket
|
||||
AND=ha
|
||||
OR=pe
|
||||
INPUT=enanka\u00F1
|
||||
PRINT=moulla\u00F1
|
||||
SLEEP=kousket
|
||||
GLOBAL=hollek
|
||||
|
||||
# functions
|
||||
RANDOM=dargouezhek
|
||||
INT=kevan
|
||||
FLOAT=tonna\u00F1
|
||||
STR=hedad
|
||||
SQRT=daouvonad
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=kos
|
||||
ROUND=ront
|
||||
ABS=dizave
|
||||
COUNT=Niver
|
||||
SET=arventenn
|
||||
RANGE=lijorenn
|
||||
LIST=roll
|
||||
TUPLE=kemalenn
|
||||
SORTED=rummet
|
||||
RESUB=is
|
||||
RESEARCH=klask
|
||||
REFINDALL=kavout an holl
|
||||
MIN=izek
|
||||
MAX=uc'hek
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=e
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=meutad|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=diwelus
|
||||
BLACK=Du
|
||||
SILVER=argant
|
||||
GRAY=loued|grey
|
||||
WHITE=gwenn
|
||||
MAROON=gell
|
||||
RED=ruz
|
||||
PURPLE=limestra
|
||||
FUCHSIA=fuchia|magenta
|
||||
GREEN=gwer
|
||||
LIME=sitro\u00F1s
|
||||
OLIVE=olivez
|
||||
YELLOW=melen
|
||||
NAVY=glaz mor
|
||||
BLUE=glas
|
||||
TEAL=houad
|
||||
AQUA=dour|cyan
|
||||
PINK=roz
|
||||
TOMATO=tomatez
|
||||
ORANGE=ora\u00F1jez
|
||||
GOLD=aour
|
||||
VIOLET=mouk
|
||||
SKYBLUE=glaz oabl
|
||||
CHOCOLATE=chokolad
|
||||
BROWN=liv kistin
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Fazi (gant linenn %s)
|
||||
ERR_ZERODIVISION=Rannadur dre vann.
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s a geler %s arguzenn (%s roet).
|
||||
ERR_BLOCK=Fazi (esaouio\u00F9 a vank pe a zo re etre ar c'hrommello\u00F9 ?)
|
||||
ERR_KEY=Elfenn dianav : %s
|
||||
ERR_INDEX=Ibil er maez eus al lijorenn.
|
||||
|
||||
ERR_STOP=Goulev arsavet :
|
||||
ERR_MAXRECURSION=aet eo dreist an donder (%d) askiza\u00F1 uc'hek .
|
||||
ERR_MEMORY=memor re skort.
|
||||
ERR_NOTAPROGRAM=Ha fellout a ra deoc'h erounit an teul mod testenn-ma\u00F1 ?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=home
|
||||
POINT=point
|
||||
CIRCLE=circle
|
||||
ELLIPSE=ellipse
|
||||
SQUARE=square
|
||||
RECTANGLE=rectangle
|
||||
LABEL=label
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=any
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0930\u093E\u0935\u092C\u094B \u0928\u0919\u093E
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=round
|
||||
SOLID=solid
|
||||
DASH=dashed
|
||||
DOTTED=dotted
|
||||
CLOSE=close
|
||||
FILL=fill
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=fontweight
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=bold
|
||||
ITALIC=italic
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u092B\u0930\u093E\u092F \u092C\u093F\u091C\u093E\u092C
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=\u091C\u094B\u092C\u0928\u093E\u092F
|
||||
STOP=stop
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=break
|
||||
CONTINUE=continue
|
||||
WHILE=while
|
||||
FOR=\u0925\u093E\u0916\u093E\u092F
|
||||
IN=in
|
||||
IF=if
|
||||
OUTPUT=output
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=true
|
||||
FALSE=false
|
||||
NOT=not
|
||||
AND=\u0906\u0930\u094B
|
||||
OR=\u090F\u092C\u093E
|
||||
INPUT=input
|
||||
PRINT=print
|
||||
SLEEP=sleep
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=random
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=round
|
||||
ABS=abs
|
||||
COUNT=\u0938\u093E\u0928\u0928\u093E\u092F
|
||||
SET=set
|
||||
RANGE=\u0938\u093E\u0930\u093F
|
||||
LIST=list
|
||||
TUPLE=tuple
|
||||
SORTED=\u0925\u093E\u0916\u094B \u0916\u093E\u0932\u093E\u0916\u093E\u0928\u093E\u092F
|
||||
RESUB=sub
|
||||
RESEARCH=search
|
||||
REFINDALL=findall
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=black
|
||||
SILVER=silver
|
||||
GRAY=gray|grey
|
||||
WHITE=white
|
||||
MAROON=maroon
|
||||
RED=red
|
||||
PURPLE=purple
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=green
|
||||
LIME=lime
|
||||
OLIVE=olive
|
||||
YELLOW=yellow
|
||||
NAVY=navy
|
||||
BLUE=blue
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=pink
|
||||
TOMATO=tomato
|
||||
ORANGE=orange
|
||||
GOLD=gold
|
||||
VIOLET=violet
|
||||
SKYBLUE=skyblue
|
||||
CHOCOLATE=chocolate
|
||||
BROWN=brown
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Error (in line %s)
|
||||
ERR_ZERODIVISION=\u0932\u093E\u0925\u093F\u0916\u091C\u094B\u0902 \u0930\u093E\u0928\u0928\u093E\u092F.
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s takes %s arguments (%s given).
|
||||
ERR_BLOCK=Error (extra or missing spaces at brackets?)
|
||||
ERR_KEY=Unknown element: %s
|
||||
ERR_INDEX=Index out of range.
|
||||
|
||||
ERR_STOP=Program terminated:
|
||||
ERR_MAXRECURSION=maximum recursion depth (%d) exceeded.
|
||||
ERR_MEMORY=not enough memory.
|
||||
ERR_NOTAPROGRAM=Do you want to run this text document?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=naprijed|fd
|
||||
BACKWARD=nazad|bk
|
||||
TURNLEFT=lijevo|skrenilijevo|lt
|
||||
TURNRIGHT=desno|skrenidesno|rt
|
||||
PENUP=pengore|pu
|
||||
PENDOWN=pendole|pd
|
||||
HOME=ku\u0107i
|
||||
POINT=ta\u010Dka
|
||||
CIRCLE=krug
|
||||
ELLIPSE=elipsa
|
||||
SQUARE=kvadrat
|
||||
RECTANGLE=pravougao
|
||||
LABEL=naljepnica
|
||||
PENCOLOR=bojaolovke|bojaolovke|bojalinije|pc
|
||||
ANY=bilo koji
|
||||
PENWIDTH=veli\u010Dinaolovke|\u0161irinaolovke|\u0161irinalinije|ps
|
||||
PENSTYLE=stilolovke|stillinije
|
||||
PENJOINT=vezaolovke|vezalinije
|
||||
PENCAP=pencap|linecap
|
||||
NONE=ni\u0161ta
|
||||
BEVEL=kosina
|
||||
MITER=kosispoj
|
||||
ROUNDED=okruglo
|
||||
SOLID=\u010Dvrsto
|
||||
DASH=isprekidano
|
||||
DOTTED=ta\u010Dkasto
|
||||
CLOSE=blizu
|
||||
FILL=popuni
|
||||
FILLCOLOR=popuniboju|popuniboju|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=stil popunjavanja
|
||||
FONTCOLOR=bojafonta|bojateksta|bojateksta
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=veli\u010Dinafonta|veli\u010Dinateksta|visinateksta
|
||||
FONTWEIGHT=te\u017Einafonta
|
||||
FONTSTYLE=stilfonta
|
||||
BOLD=masno
|
||||
ITALIC=koso
|
||||
UPRIGHT=goredesno|normalno
|
||||
NORMAL=obicno
|
||||
FONTFAMILY=fontfamilija
|
||||
CLEARSCREEN=o\u010Distiekran|cs
|
||||
TEXT=tekst
|
||||
HIDETURTLE=sakrijkornja\u010Du|ht|sakrijmene
|
||||
SHOWTURTLE=prika\u017Eikornja\u010Du|st|prika\u017Eimene
|
||||
POSITION=pozicija|pos|postavipos
|
||||
HEADING=zaglavlje|postavizaglavlje|seth
|
||||
PAGESIZE=veli\u010Dinastranice
|
||||
GROUP=slika|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=do
|
||||
END=kraj
|
||||
STOP=zaustavi
|
||||
REPEAT=ponavljaj|zauvijek
|
||||
REPCOUNT=repbroji
|
||||
BREAK=isko\u010Di
|
||||
CONTINUE=nastavak
|
||||
WHILE=dok
|
||||
FOR=za
|
||||
IN=u
|
||||
IF=ako
|
||||
OUTPUT=izlaz
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=true
|
||||
FALSE=false
|
||||
NOT=ne
|
||||
AND=i
|
||||
OR=ili
|
||||
INPUT=ulaz
|
||||
PRINT=\u0161tampaj
|
||||
SLEEP=spavanje
|
||||
GLOBAL=op\u0161te
|
||||
|
||||
# functions
|
||||
RANDOM=slu\u010Dajno
|
||||
INT=cijeli broj
|
||||
FLOAT=realni
|
||||
STR=str
|
||||
SQRT=korijen
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=okruglo
|
||||
ABS=abs
|
||||
COUNT=mjesta
|
||||
SET=postavi
|
||||
RANGE=opseg
|
||||
LIST=lista
|
||||
TUPLE=pobrojane
|
||||
SORTED=sortirano
|
||||
RESUB=sub
|
||||
RESEARCH=tra\u017Ei
|
||||
REFINDALL=nadjisve
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=nevidljivo
|
||||
BLACK=crna
|
||||
SILVER=srebrena
|
||||
GRAY=siva|siva
|
||||
WHITE=bijela
|
||||
MAROON=kestenjasta
|
||||
RED=crvena
|
||||
PURPLE=ljubi\u010Dasta
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=zelena
|
||||
LIME=lime
|
||||
OLIVE=maslinasta
|
||||
YELLOW=\u017Euta
|
||||
NAVY=mornarska
|
||||
BLUE=plava
|
||||
TEAL=grogotovac
|
||||
AQUA=vodena|cyan
|
||||
PINK=roza
|
||||
TOMATO=paradajz
|
||||
ORANGE=narand\u017Easta
|
||||
GOLD=zlatna
|
||||
VIOLET=ljubi\u010Dasta
|
||||
SKYBLUE=nebeskoplava
|
||||
CHOCOLATE=\u010Dokolada
|
||||
BROWN=sme\u0111a
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Gre\u0161ka (u liniji %s)
|
||||
ERR_ZERODIVISION=Dijeljenje sa nulom.
|
||||
ERR_NAME=Unknown name: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=%s uzima %s argumenata (%s dato).
|
||||
ERR_BLOCK=Gre\u0161ka (vi\u0161ka ili fali razmaka u ragradama?)
|
||||
ERR_KEY=Nepoznat element: %s
|
||||
ERR_INDEX=Indeks van opsega.
|
||||
|
||||
ERR_STOP=Program okon\u010Dan:
|
||||
ERR_MAXRECURSION=maksimalna dubina rekurzija (%d) prema\u0161ena.
|
||||
ERR_MEMORY=nema dovoljnomemorije.
|
||||
ERR_NOTAPROGRAM=Da li \u017Eelite pokrenuti ovaj tekstualni dokument?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=avan\u00E7a|endavant|davant|av
|
||||
BACKWARD=retrocedeix|recula|enrere|re
|
||||
TURNLEFT=esquerra|giraesquerra|gira.esquerra|ge
|
||||
TURNRIGHT=dreta|giradreta|gira.dreta|gd
|
||||
PENUP=aixeca.llapis|al
|
||||
PENDOWN=baixa.llapis|bl
|
||||
HOME=inici|centre
|
||||
POINT=punt
|
||||
CIRCLE=cercle
|
||||
ELLIPSE=el\u00B7lipse
|
||||
SQUARE=quadrat
|
||||
RECTANGLE=rectangle
|
||||
LABEL=etiqueta
|
||||
PENCOLOR=color.llapis|color.l\u00EDnia|cl
|
||||
ANY=qualsevol
|
||||
PENWIDTH=mida.llapis|mida.l\u00EDnia|ml
|
||||
PENSTYLE=estil.llapis|estil.l\u00EDnia|el
|
||||
PENJOINT=uni\u00F3.llapis|uni\u00F3.l\u00EDnia|ul
|
||||
PENCAP=tap.llapis|final.l\u00EDnia|extrem.l\u00EDnia
|
||||
NONE=cap
|
||||
BEVEL=bisell
|
||||
MITER=esbiaixa|biaix
|
||||
ROUNDED=arrodoneix|arrod
|
||||
SOLID=s\u00F2lid
|
||||
DASH=tra\u00E7at
|
||||
DOTTED=puntejat
|
||||
CLOSE=tanca
|
||||
FILL=omple|emplena
|
||||
FILLCOLOR=color.emplenament|ce
|
||||
FILLTRANSPARENCY=transpar\u00E8ncia.emplenament
|
||||
PENTRANSPARENCY=llapis.transpar\u00E8ncia|l\u00EDnia.transpar\u00E8ncia
|
||||
FILLSTYLE=estil.emplenament|ee
|
||||
FONTCOLOR=color.lletra|color.text
|
||||
FONTTRANSPARENCY=transpar\u00E8ncia.lletra|transpar\u00E8ncia.text
|
||||
FONTHEIGHT=mida.lletra|mida.text
|
||||
FONTWEIGHT=pes.lletra|pl
|
||||
FONTSTYLE=estil.lletra|el
|
||||
BOLD=negreta
|
||||
ITALIC=cursiva|it\u00E0lica
|
||||
UPRIGHT=vertical|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fam\u00EDlia.lletra|fl
|
||||
CLEARSCREEN=neteja.dibuix|inicia.dibuix|net|id
|
||||
TEXT=text
|
||||
HIDETURTLE=amaga.tortuga|oculta.tortuga|at|ot
|
||||
SHOWTURTLE=mostra.tortuga|mt
|
||||
POSITION=posici\u00F3|pos|estableix.posici\u00F3
|
||||
HEADING=canvia.sentit|sentit|heading|setheading|seth
|
||||
PAGESIZE=mida.p\u00E0gina|mp
|
||||
GROUP=figura|fig
|
||||
|
||||
# control structures
|
||||
|
||||
TO=fins.a
|
||||
END=final|fi
|
||||
STOP=atura|para
|
||||
REPEAT=repeteix|rep
|
||||
REPCOUNT=repeteix.vegades|repv
|
||||
BREAK=salta|trenca
|
||||
CONTINUE=continua
|
||||
WHILE=mentre
|
||||
FOR=per.a
|
||||
IN=a|en
|
||||
IF=si
|
||||
OUTPUT=sortida
|
||||
LEFTSTRING=\u201C|\u2018|\u00AB
|
||||
RIGHTSTRING=\u201D|\u2019|\u00BB
|
||||
TRUE=cert|veritat
|
||||
FALSE=fals
|
||||
NOT=no
|
||||
AND=i
|
||||
OR=o
|
||||
INPUT=entrada
|
||||
PRINT=imprimeix
|
||||
SLEEP=dorm|espera
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=aleatori
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=arrel
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=arrodoneix|arrod
|
||||
ABS=abs
|
||||
COUNT=compte
|
||||
SET=conjunt
|
||||
RANGE=interval
|
||||
LIST=llista
|
||||
TUPLE=tupla
|
||||
SORTED=ordenat
|
||||
RESUB=sub
|
||||
RESEARCH=cerca
|
||||
REFINDALL=cerca.tot|troba.tot
|
||||
MIN=m\u00EDn|min
|
||||
MAX=m\u00E0x|max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=,
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=negre
|
||||
SILVER=plata|argent
|
||||
GRAY=gris
|
||||
WHITE=blanc
|
||||
MAROON=granat|grana
|
||||
RED=vermell|roig
|
||||
PURPLE=porpra|p\u00FArpura
|
||||
FUCHSIA=f\u00FAcsia|magenta
|
||||
GREEN=verd
|
||||
LIME=llima|verd.llima
|
||||
OLIVE=oliva|verd.oliva
|
||||
YELLOW=groc
|
||||
NAVY=blau.mar\u00ED|mar\u00ED
|
||||
BLUE=blau
|
||||
TEAL=jade
|
||||
AQUA=cian
|
||||
PINK=rosa
|
||||
TOMATO=tom\u00E0quet|tomata
|
||||
ORANGE=taronja
|
||||
GOLD=or|daurat
|
||||
VIOLET=violat|violeta
|
||||
SKYBLUE=blau.cel|cel
|
||||
CHOCOLATE=xocolata|xocolate
|
||||
BROWN=marr\u00F3
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=S'ha produ\u00EFt un error (a la l\u00EDnia %s)
|
||||
ERR_ZERODIVISION=Divisi\u00F3 per zero.
|
||||
ERR_NAME=Nom desconegut: \u00AB%s\u00BB.
|
||||
ERR_ARGUMENTS=%s pren %s arguments (%s donats).
|
||||
ERR_BLOCK=S'ha produ\u00EFt un error (espais extra o omesos als par\u00E8ntesis?)
|
||||
ERR_KEY=L'element \u00AB%s\u00BB no \u00E9s conegut.
|
||||
ERR_INDEX=L'\u00EDndex \u00E9s fora de l'interval.
|
||||
|
||||
ERR_STOP=El programa ha acabat:
|
||||
ERR_MAXRECURSION=s'ha superat la profunditat m\u00E0xima de recursivitat (%d).
|
||||
ERR_MEMORY=no hi ha prou mem\u00F2ria.
|
||||
ERR_NOTAPROGRAM=Voleu executar aquest document de text?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=avan\u00E7a|avant|davant|av
|
||||
BACKWARD=retrocedeix|recula|arrere|re
|
||||
TURNLEFT=esquerra|giraesquerra|gira.esquerra|ge
|
||||
TURNRIGHT=dreta|giradreta|gira.dreta|gd
|
||||
PENUP=al\u00E7a.llapis|al
|
||||
PENDOWN=baixa.llapis|bl
|
||||
HOME=inici|centre
|
||||
POINT=punt
|
||||
CIRCLE=cercle
|
||||
ELLIPSE=el\u00B7lipse
|
||||
SQUARE=quadrat
|
||||
RECTANGLE=rectangle
|
||||
LABEL=etiqueta
|
||||
PENCOLOR=color.llapis|color.l\u00EDnia|cl
|
||||
ANY=qualsevol
|
||||
PENWIDTH=mida.llapis|mida.l\u00EDnia|ml
|
||||
PENSTYLE=estil.llapis|estil.l\u00EDnia|el
|
||||
PENJOINT=uni\u00F3.llapis|uni\u00F3.l\u00EDnia|ul
|
||||
PENCAP=tap.llapis|final.l\u00EDnia|extrem.l\u00EDnia
|
||||
NONE=cap
|
||||
BEVEL=bisell
|
||||
MITER=esbiaixa|biaix
|
||||
ROUNDED=arredoneix|arred
|
||||
SOLID=s\u00F2lid
|
||||
DASH=tra\u00E7at
|
||||
DOTTED=puntejat
|
||||
CLOSE=tanca
|
||||
FILL=omple|ompli
|
||||
FILLCOLOR=color.emplenament|ce
|
||||
FILLTRANSPARENCY=transpar\u00E8ncia.emplenament
|
||||
PENTRANSPARENCY=llapis.transpar\u00E8ncia|l\u00EDnia.transpar\u00E8ncia
|
||||
FILLSTYLE=estil.emplenament|ee
|
||||
FONTCOLOR=color.lletra|color.text
|
||||
FONTTRANSPARENCY=transpar\u00E8ncia.lletra|transpar\u00E8ncia.text
|
||||
FONTHEIGHT=mida.lletra|mida.text
|
||||
FONTWEIGHT=pes.lletra|pl
|
||||
FONTSTYLE=estil.lletra|el
|
||||
BOLD=negreta
|
||||
ITALIC=cursiva|it\u00E0lica
|
||||
UPRIGHT=vertical|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fam\u00EDlia.lletra|fl
|
||||
CLEARSCREEN=neteja.dibuix|inicia.dibuix|net|id
|
||||
TEXT=text
|
||||
HIDETURTLE=amaga.tortuga|oculta.tortuga|at|ot
|
||||
SHOWTURTLE=mostra.tortuga|mt
|
||||
POSITION=posici\u00F3|pos|estableix.posici\u00F3
|
||||
HEADING=canvia.sentit|sentit
|
||||
PAGESIZE=mida.p\u00E0gina|mp
|
||||
GROUP=figura|fig
|
||||
|
||||
# control structures
|
||||
|
||||
TO=fins.a
|
||||
END=final|fi
|
||||
STOP=para
|
||||
REPEAT=repeteix|rep
|
||||
REPCOUNT=repeteix.vegades|repv
|
||||
BREAK=salta|trenca
|
||||
CONTINUE=continua
|
||||
WHILE=mentre
|
||||
FOR=per.a
|
||||
IN=a|en
|
||||
IF=si
|
||||
OUTPUT=eixida
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=cert|veritat
|
||||
FALSE=fals
|
||||
NOT=no
|
||||
AND=i
|
||||
OR=o
|
||||
INPUT=entrada
|
||||
PRINT=imprimeix
|
||||
SLEEP=dorm|espera
|
||||
GLOBAL=global
|
||||
|
||||
# functions
|
||||
RANDOM=aleatori
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=str
|
||||
SQRT=arrel
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=arredoneix|arred
|
||||
ABS=abs
|
||||
COUNT=compte
|
||||
SET=conjunt
|
||||
RANGE=interval
|
||||
LIST=llista
|
||||
TUPLE=tupla
|
||||
SORTED=ordenat
|
||||
RESUB=sub
|
||||
RESEARCH=busca
|
||||
REFINDALL=busca.tot|troba.tot
|
||||
MIN=m\u00EDn|min
|
||||
MAX=m\u00E0x|max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=,
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=invisible
|
||||
BLACK=negre
|
||||
SILVER=plata|argent
|
||||
GRAY=gris
|
||||
WHITE=blanc
|
||||
MAROON=granat|grana
|
||||
RED=roig
|
||||
PURPLE=porpra|p\u00FArpura
|
||||
FUCHSIA=f\u00FAcsia|magenta
|
||||
GREEN=verd
|
||||
LIME=llima|verd.llima
|
||||
OLIVE=oliva|verd.oliva
|
||||
YELLOW=groc
|
||||
NAVY=blau.mar\u00ED|mar\u00ED
|
||||
BLUE=blau
|
||||
TEAL=jade
|
||||
AQUA=cian
|
||||
PINK=rosa
|
||||
TOMATO=tomata|tomaca
|
||||
ORANGE=taronja
|
||||
GOLD=or|daurat
|
||||
VIOLET=violat|violeta
|
||||
SKYBLUE=blau.cel|cel
|
||||
CHOCOLATE=xocolata|xocolate
|
||||
BROWN=marr\u00F3
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=S'ha produ\u00EFt un error (a la l\u00EDnia %s)
|
||||
ERR_ZERODIVISION=Divisi\u00F3 per zero.
|
||||
ERR_NAME=Nom desconegut: \u00AB%s\u00BB.
|
||||
ERR_ARGUMENTS=%s pren %s arguments (%s donats).
|
||||
ERR_BLOCK=S'ha produ\u00EFt un error (espais extra o omesos als par\u00E8ntesis?)
|
||||
ERR_KEY=L'element \u00AB%s\u00BB no \u00E9s conegut.
|
||||
ERR_INDEX=L'\u00EDndex \u00E9s fora de l'interval.
|
||||
|
||||
ERR_STOP=El programa ha acabat:
|
||||
ERR_MAXRECURSION=s'ha superat la profunditat m\u00E0xima de recursivitat (%d).
|
||||
ERR_MEMORY=no hi ha prou mem\u00F2ria.
|
||||
ERR_NOTAPROGRAM=Voleu executar aquest document de text?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=forward|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=\u0645\u0627\u06B5\u06D5\u0648\u06D5
|
||||
POINT=\u062E\u0627\u06B5
|
||||
CIRCLE=\u0628\u0627\u0632\u0646\u06D5
|
||||
ELLIPSE=\u0647\u06CE\u0644\u06A9\u06D5\u06CC\u06CC
|
||||
SQUARE=\u0686\u0648\u0627\u0631\u06AF\u06C6\u0634\u06D5
|
||||
RECTANGLE=\u0644\u0627\u06A9\u06CE\u0634\u06D5
|
||||
LABEL=\u067E\u06CE\u0646\u0627\u0633\u06A9\u0631\u0627\u0648
|
||||
PENCOLOR=\u202Bpencolor|pencolour|linecolor|pc
|
||||
ANY=\u0647\u06D5\u0631\u06CC\u06D5\u06A9\u06CE\u06A9
|
||||
PENWIDTH=\u202Bpensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=\u0647\u06CC\u0686
|
||||
BEVEL=bevel
|
||||
MITER=miter
|
||||
ROUNDED=\u062E\u0648\u0644\u0627\u0648\u06D5
|
||||
SOLID=\u0695\u06D5\u0642
|
||||
DASH=\u0647\u06CE\u06B5\u06CC \u067E\u0686\u0695 \u067E\u0686\u0631
|
||||
DOTTED=\u062E\u0627\u06B5\u06A9\u0631\u0627\u0648
|
||||
CLOSE=\u062F\u0627\u062E\u0633\u062A\u0646
|
||||
FILL=\u067E\u0695\u06CC
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=\u067E\u0627\u0646\u06CC \u062C\u06C6\u0631\u06D5\u067E\u06CC\u062A
|
||||
FONTSTYLE=\u0634\u06CE\u0648\u0627\u0632\u06CC \u062C\u06C6\u0631\u06D5\u067E\u06CC\u062A
|
||||
BOLD=\u0642\u06D5\u06B5\u06D5\u0648
|
||||
ITALIC=\u0644\u0627\u0631
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=\u0626\u0627\u0633\u0627\u06CC\u06CC
|
||||
FONTFAMILY=\u062E\u06CE\u0632\u0627\u0646\u06CC \u062C\u06C6\u0631\u06D5\u067E\u06CC\u062A
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=\u062F\u06D5\u0642
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=\u0642\u06D5\u0628\u0627\u0631\u06D5\u06CC \u067E\u06D5\u0695\u06D5
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=\u202Bto
|
||||
END=\u202Bend
|
||||
STOP=\u202Bstop
|
||||
REPEAT=\u202Brepeat|forever
|
||||
REPCOUNT=\u202Bbreak
|
||||
BREAK=\u202Bbreak
|
||||
CONTINUE=\u202Bcontinue
|
||||
WHILE=\u202Bwhile
|
||||
FOR=\u202Bfor
|
||||
IN=\u202Bin
|
||||
IF=\u202Bif
|
||||
OUTPUT=\u062F\u06D5\u0631\u062E\u0633\u062A\u06D5
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=\u202Btrue
|
||||
FALSE=\u202Bfalse
|
||||
NOT=\u202Bnot
|
||||
AND=\u202Band
|
||||
OR=\u202Bor
|
||||
INPUT=\u062A\u06CE\u062E\u0633\u062A\u06D5
|
||||
PRINT=\u0686\u0627\u067E\u06A9\u0631\u062F\u0646
|
||||
SLEEP=\u062E\u06D5\u0648\u062A\u0646
|
||||
GLOBAL=\u062C\u06CC\u0647\u0627\u0646\u06CC\u06CC
|
||||
|
||||
# functions
|
||||
RANDOM=\u0647\u06D5\u0695\u06D5\u0645\u06D5\u06A9\u06CC
|
||||
INT=int
|
||||
FLOAT=float
|
||||
STR=\u202Bstr
|
||||
SQRT=\u0695\u06D5\u06AF
|
||||
LOG10=\u202Blog10
|
||||
SIN=\u0633\u0627\u06CC\u0646
|
||||
COS=\u06A9\u06C6\u0633
|
||||
ROUND=\u062E\u0648\u0644\u0627\u0648\u06D5
|
||||
ABS=\u202Babs
|
||||
COUNT=\u0698\u0645\u0627\u0631\u062F\u0646
|
||||
SET=\u0633\u06CE\u062A
|
||||
RANGE=\u0628\u0648\u0627\u0631
|
||||
LIST=\u0644\u06CC\u0633\u062A\u06D5
|
||||
TUPLE=tuple
|
||||
SORTED=\u0631\u06CE\u06A9\u062E\u0631\u0627\u0648
|
||||
RESUB=sub
|
||||
RESEARCH=\u06AF\u06D5\u0695\u0627\u0646
|
||||
REFINDALL=findall
|
||||
MIN=\u0646\u0632\u0645\u062A\u0631\u06CC\u0646
|
||||
MAX=\u0628\u06D5\u0631\u0632\u062A\u0631\u06CC\u0646
|
||||
|
||||
PI=\u202Bpi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=\u06A9
|
||||
MM=\u0645\u0644\u0645
|
||||
CM=\u0633\u0645
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=\u0646\u06D5\u0628\u06CC\u0646\u0631\u0627\u0648
|
||||
BLACK=\u0695\u06D5\u0634
|
||||
SILVER=\u0632\u06CC\u0648\u06CC
|
||||
GRAY=\u062E\u06C6\u06B5\u06D5\u0645\u06CE\u0634\u06CC
|
||||
WHITE=\u0633\u067E\u06CC
|
||||
MAROON=\u0645\u0627\u0631\u06C6\u0646\u06CC\u06CC
|
||||
RED=\u0633\u0648\u0631
|
||||
PURPLE=\u0645\u06C6\u0631
|
||||
FUCHSIA=\u0633\u0648\u0631\u06CC \u0626\u06D5\u0631\u062E\u06D5\u0648\u0627\u0646\u06CC
|
||||
GREEN=\u0633\u06D5\u0648\u0632
|
||||
LIME=lime
|
||||
OLIVE=\u0632\u06D5\u06CC\u062A\u0648\u0648\u0646\u06CC
|
||||
YELLOW=\u0632\u06D5\u0631\u062F
|
||||
NAVY=navy
|
||||
BLUE=\u0634\u06CC\u0646
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=\u067E\u06D5\u0645\u06D5\u06CC\u06CC
|
||||
TOMATO=\u062A\u06D5\u0645\u0627\u062A\u06D5\u06CC\u06CC
|
||||
ORANGE=\u067E\u0631\u062A\u06D5\u0642\u0627\u06B5\u06CC
|
||||
GOLD=\u0626\u0627\u06B5\u062A\u0648\u0648\u0646\u06CC
|
||||
VIOLET=\u0648\u06D5\u0646\u06D5\u0648\u0634\u06D5\u06CC\u06CC
|
||||
SKYBLUE=\u0634\u06CC\u0646\u06CC \u0626\u0627\u0633\u0645\u0627\u0646\u06CC
|
||||
CHOCOLATE=\u0686\u0648\u06A9\u0644\u06CE\u062A\u06CC
|
||||
BROWN=\u0642\u0627\u0648\u06D5\u06CC\u06CC
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=\u202BLibreLogo
|
||||
ERROR=Error (in line %s)
|
||||
ERR_ZERODIVISION=\u062F\u0627\u0628\u06D5\u0634\u06A9\u0631\u062F\u0646 \u0628\u06D5\u0633\u06D5\u0631 \u0633\u0641\u0631\u062F\u0627.
|
||||
ERR_NAME=\u0646\u0627\u0648\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: %s
|
||||
ERR_ARGUMENTS=%s takes %s arguments (%s given).
|
||||
ERR_BLOCK=Error (extra or missing spaces at brackets?)
|
||||
ERR_KEY=\u062A\u0648\u062E\u0645\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: %s
|
||||
ERR_INDEX=\u067E\u06CE\u0695\u0633\u062A \u0644\u06D5 \u062F\u06D5\u0631\u06D5\u0648\u06D5\u06CC \u0628\u0648\u0627\u0631\u06D5\u06A9\u06D5\u06CC\u06D5.
|
||||
|
||||
ERR_STOP=\u0628\u06D5\u0631\u0646\u0627\u0645\u06D5 \u062F\u0627\u062E\u0631\u0627:
|
||||
ERR_MAXRECURSION=maximum recursion depth (%d) exceeded.
|
||||
ERR_MEMORY=\u0628\u06CC\u0631\u06AF\u06D5\u06CC \u067E\u06CE\u0648\u06CC\u0633\u062A \u0646\u06CC\u06D5.
|
||||
ERR_NOTAPROGRAM=\u062F\u06D5\u062A\u06D5\u0648\u06CE\u062A \u062F\u06D5\u0642\u06D5\u06A9\u0627\u0646\u06CC \u0646\u0627\u0648 \u0626\u06D5\u0645 \u0628\u06D5\u06B5\u06AF\u06D5\u0646\u0627\u0645\u06D5\u06CC\u06D5 \u06A9\u0627\u0631\u067E\u06CE\u0628\u06A9\u06D5\u06CC\u062A\u061F
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=dop\u0159edu|do
|
||||
BACKWARD=vzad|vz
|
||||
TURNLEFT=vlevo|vl
|
||||
TURNRIGHT=vpravo|vp
|
||||
PENUP=peronahoru|pn
|
||||
PENDOWN=perodol\u016F|pd
|
||||
HOME=dom\u016F
|
||||
POINT=bod|punt\u00EDk
|
||||
CIRCLE=kruh
|
||||
ELLIPSE=elipsa
|
||||
SQUARE=\u010Dtverec
|
||||
RECTANGLE=obd\u00E9ln\u00EDk
|
||||
LABEL=text
|
||||
PENCOLOR=barvapera|barva\u010D\u00E1ry|bp
|
||||
ANY=libovoln\u011B|lib
|
||||
PENWIDTH=tlou\u0161\u0165kapera|tlou\u0161\u0165ka\u010D\u00E1ry|tp
|
||||
PENSTYLE=druhpera|druh\u010D\u00E1ry
|
||||
PENJOINT=napojen\u00EDpera|napojen\u00ED\u010D\u00E1ry
|
||||
PENCAP=zakon\u010Den\u00EDpera|zakon\u010Den\u00ED\u010D\u00E1ry
|
||||
NONE=\u017E\u00E1dn\u00E9
|
||||
BEVEL=\u0161ikm\u00E9
|
||||
MITER=ostr\u00E9
|
||||
ROUNDED=obl\u00E9
|
||||
SOLID=pln\u00E1
|
||||
DASH=\u010D\u00E1rkovan\u00E1
|
||||
DOTTED=te\u010Dkovan\u00E1
|
||||
CLOSE=uzav\u0159i
|
||||
FILL=vypl\u0148
|
||||
FILLCOLOR=barvav\u00FDpln\u011B|bv
|
||||
FILLTRANSPARENCY=pr\u016Fhlednostv\u00FDpln\u011B|pr\u016Fhlv\u00FDpln\u011B
|
||||
PENTRANSPARENCY=pr\u016Fhlednostpera|pr\u016Fhlednost\u010D\u00E1ry|pr\u016Fhlpera|pr\u016Fhl\u010D\u00E1ry
|
||||
FILLSTYLE=druhv\u00FDpln\u011B
|
||||
FONTCOLOR=barvap\u00EDsma|barvatextu
|
||||
FONTTRANSPARENCY=pr\u016Fhlednostp\u00EDsma|pr\u016Fhlp\u00EDsma|pr\u016Fhlednosttextu|pr\u016Fhltextu
|
||||
FONTHEIGHT=velikostp\u00EDsma|velikosttextu
|
||||
FONTWEIGHT=tlou\u0161\u0165kap\u00EDsma
|
||||
FONTSTYLE=stylp\u00EDsma
|
||||
BOLD=tu\u010Dn\u00E9
|
||||
ITALIC=kurz\u00EDva
|
||||
UPRIGHT=norm\u00E1ln\u00ED
|
||||
NORMAL=norm\u00E1ln\u00ED
|
||||
FONTFAMILY=druhp\u00EDsma
|
||||
CLEARSCREEN=sma\u017Eobrazovku|so
|
||||
TEXT=popisek
|
||||
HIDETURTLE=skryj\u017Eelvu|skryj|s\u017E
|
||||
SHOWTURTLE=uka\u017E\u017Eelvu|uka\u017E|u\u017E
|
||||
POSITION=pozice|poz|nastavpoz
|
||||
HEADING=sm\u011Br|nastavsm\u011Br
|
||||
PAGESIZE=velikoststr\u00E1nky
|
||||
GROUP=obr\u00E1zek|obr
|
||||
|
||||
# control structures
|
||||
|
||||
TO=p\u0159\u00EDkaz
|
||||
END=konec
|
||||
STOP=zastav
|
||||
REPEAT=opakuj|po\u0159\u00E1d
|
||||
REPCOUNT=po\u010D\u00EDtadlo|po\u010D
|
||||
BREAK=ukon\u010Di
|
||||
CONTINUE=pokra\u010Duj
|
||||
WHILE=dokud
|
||||
FOR=pro
|
||||
IN=z
|
||||
IF=kdy\u017E
|
||||
OUTPUT=v\u00FDsledek
|
||||
LEFTSTRING=\u201E|"
|
||||
RIGHTSTRING=\u201C|"
|
||||
TRUE=pravda
|
||||
FALSE=nepravda
|
||||
NOT=nen\u00ED
|
||||
AND=az\u00E1rove\u0148|az
|
||||
OR=nebo
|
||||
INPUT=vstup
|
||||
PRINT=pi\u0161
|
||||
SLEEP=\u010Dekej
|
||||
GLOBAL=glob\u00E1ln\u00ED
|
||||
|
||||
# functions
|
||||
RANDOM=n\u00E1hodn\u00E9
|
||||
INT=cel\u00E9
|
||||
FLOAT=desetinn\u00E9
|
||||
STR=\u0159et\u011Bzec
|
||||
SQRT=odmocnina
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=obl\u00E9
|
||||
ABS=absolutn\u00ED
|
||||
COUNT=po\u010Det
|
||||
SET=mno\u017Eina
|
||||
RANGE=rozsah
|
||||
LIST=seznam
|
||||
TUPLE=ntice
|
||||
SORTED=se\u0159azeno
|
||||
RESUB=nahra\u010F
|
||||
RESEARCH=hledej
|
||||
REFINDALL=najdiv\u0161e
|
||||
MIN=min
|
||||
MAX=max
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=,
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=neviditeln\u00E1
|
||||
BLACK=\u010Dern\u00E9
|
||||
SILVER=st\u0159\u00EDbrn\u00E1
|
||||
GRAY=\u0161ed\u00E1
|
||||
WHITE=b\u00EDl\u00E1
|
||||
MAROON=ka\u0161tanov\u00E1
|
||||
RED=\u010Derven\u00E1
|
||||
PURPLE=purpurov\u00E1
|
||||
FUCHSIA=magenta
|
||||
GREEN=zelen\u00E1
|
||||
LIME=\u017Elutozelen\u00E1
|
||||
OLIVE=olivov\u00E1
|
||||
YELLOW=\u017Elut\u00E1
|
||||
NAVY=tmavomodr\u00E1
|
||||
BLUE=modr\u00E1
|
||||
TEAL=zelenomodr\u00E1
|
||||
AQUA=azurov\u00E1
|
||||
PINK=r\u016F\u017Eov\u00E1
|
||||
TOMATO=cihlov\u00E1
|
||||
ORANGE=oran\u017Eov\u00E1
|
||||
GOLD=zlat\u00E1
|
||||
VIOLET=fialov\u00E1
|
||||
SKYBLUE=bled\u011Bmodr\u00E1
|
||||
CHOCOLATE=\u010Dokol\u00E1dov\u00E1
|
||||
BROWN=hn\u011Bd\u00E1
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Chyba (na \u0159\u00E1dku %s)
|
||||
ERR_ZERODIVISION=D\u011Blen\u00ED nulou.
|
||||
ERR_NAME=Nezn\u00E1m\u00FD n\u00E1zev: \u201E%s\u201C.
|
||||
ERR_ARGUMENTS=%s vy\u017Eaduje %s argument\u016F (p\u0159ed\u00E1no %s).
|
||||
ERR_BLOCK=Chyba (p\u0159eb\u00FDvaj\u00EDc\u00ED nebo chyb\u011Bj\u00EDc\u00ED mezery u z\u00E1vorek?)
|
||||
ERR_KEY=Nezn\u00E1m\u00FD prvek: %s
|
||||
ERR_INDEX=Index mimo rozsah.
|
||||
|
||||
ERR_STOP=Program ukon\u010Den:
|
||||
ERR_MAXRECURSION=p\u0159ekro\u010Dena maxim\u00E1ln\u00ED hloubka rekurze (%d).
|
||||
ERR_MEMORY=nedostatek pam\u011Bti.
|
||||
ERR_NOTAPROGRAM=P\u0159ejete si spustit tento textov\u00FD dokument?
|
||||
@@ -0,0 +1,156 @@
|
||||
# turtle graphics
|
||||
|
||||
FORWARD=ymlaen|fd
|
||||
BACKWARD=back|bk
|
||||
TURNLEFT=left|turnleft|lt
|
||||
TURNRIGHT=right|turnright|rt
|
||||
PENUP=penup|pu
|
||||
PENDOWN=pendown|pd
|
||||
HOME=cartref
|
||||
POINT=pwynt
|
||||
CIRCLE=cylch
|
||||
ELLIPSE=elips
|
||||
SQUARE=sgw\u00E2r
|
||||
RECTANGLE=petryal
|
||||
LABEL=label
|
||||
PENCOLOR=pencolor|pencolour|linecolor|pc
|
||||
ANY=unrhyw un
|
||||
PENWIDTH=pensize|penwidth|linewidth|ps
|
||||
PENSTYLE=penstyle|linestyle
|
||||
PENJOINT=penjoint|linejoint
|
||||
PENCAP=pencap|linecap
|
||||
NONE=dim
|
||||
BEVEL=befel
|
||||
MITER=meitr
|
||||
ROUNDED=crwn
|
||||
SOLID=solet
|
||||
DASH=toredig
|
||||
DOTTED=dotiog
|
||||
CLOSE=cau
|
||||
FILL=llanw
|
||||
FILLCOLOR=fillcolor|fillcolour|fc
|
||||
FILLTRANSPARENCY=filltransparency
|
||||
PENTRANSPARENCY=pentransparency|linetransparency
|
||||
FILLSTYLE=fillstyle
|
||||
FONTCOLOR=fontcolor|textcolor|textcolour
|
||||
FONTTRANSPARENCY=fonttransparency|texttransparency
|
||||
FONTHEIGHT=fontsize|textsize|textheight
|
||||
FONTWEIGHT=pwysau ffont
|
||||
FONTSTYLE=fontstyle
|
||||
BOLD=trwm
|
||||
ITALIC=italig
|
||||
UPRIGHT=upright|normal
|
||||
NORMAL=normal
|
||||
FONTFAMILY=fontfamily
|
||||
CLEARSCREEN=clearscreen|cs
|
||||
TEXT=testun
|
||||
HIDETURTLE=hideturtle|ht|hideme
|
||||
SHOWTURTLE=showturtle|st|showme
|
||||
POSITION=position|pos|setpos
|
||||
HEADING=heading|setheading|seth
|
||||
PAGESIZE=pagesize
|
||||
GROUP=picture|pic
|
||||
|
||||
# control structures
|
||||
|
||||
TO=to
|
||||
END=diwedd
|
||||
STOP=atal
|
||||
REPEAT=repeat|forever
|
||||
REPCOUNT=repcount
|
||||
BREAK=toriad
|
||||
CONTINUE=parhau
|
||||
WHILE=while
|
||||
FOR=ar gyfer
|
||||
IN=mod
|
||||
IF=if
|
||||
OUTPUT=allbwn
|
||||
LEFTSTRING=\u201C|\u2018
|
||||
RIGHTSTRING=\u201D|\u2019
|
||||
TRUE=gwir
|
||||
FALSE=ffug
|
||||
NOT=not
|
||||
AND=a
|
||||
OR=neu
|
||||
INPUT=mewnbwn
|
||||
PRINT=argraffu
|
||||
SLEEP=cysgu
|
||||
GLOBAL=byd eang
|
||||
|
||||
# functions
|
||||
RANDOM=ar hap
|
||||
INT=int
|
||||
FLOAT=arnofio
|
||||
STR=str
|
||||
SQRT=sqrt
|
||||
LOG10=log10
|
||||
SIN=sin
|
||||
COS=cos
|
||||
ROUND=crwn
|
||||
ABS=abs
|
||||
COUNT=cyfrif
|
||||
SET=set
|
||||
RANGE=ystod
|
||||
LIST=rhestr
|
||||
TUPLE=tuple
|
||||
SORTED=trefnwyd
|
||||
RESUB=sub
|
||||
RESEARCH=chwilio
|
||||
REFINDALL=findall
|
||||
MIN=mun
|
||||
MAX=uchaf
|
||||
|
||||
PI=pi|\u03C0
|
||||
|
||||
# measurement
|
||||
DECIMAL=.
|
||||
DEG=\u00B0
|
||||
HOUR=h
|
||||
MM=mm
|
||||
CM=cm
|
||||
PT=pt
|
||||
INCH=in|"
|
||||
|
||||
# color codes
|
||||
|
||||
INVISIBLE=anweledig
|
||||
BLACK=du
|
||||
SILVER=arian
|
||||
GRAY=gray|grey
|
||||
WHITE=gwyn
|
||||
MAROON=mar\u0175n
|
||||
RED=coch
|
||||
PURPLE=porffor
|
||||
FUCHSIA=fuchsia|magenta
|
||||
GREEN=green
|
||||
LIME=leim
|
||||
OLIVE=olewydden
|
||||
YELLOW=melyn
|
||||
NAVY=glas y llynges
|
||||
BLUE=glas
|
||||
TEAL=teal
|
||||
AQUA=aqua|cyan
|
||||
PINK=pinc
|
||||
TOMATO=tomato
|
||||
ORANGE=oren
|
||||
GOLD=aur
|
||||
VIOLET=fioled
|
||||
SKYBLUE=skyblue
|
||||
CHOCOLATE=siocled
|
||||
BROWN=brown
|
||||
|
||||
# messages
|
||||
|
||||
LIBRELOGO=LibreLogo
|
||||
ERROR=Gwall (yn llinell: %s)
|
||||
ERR_ZERODIVISION=Rhannu gyda sero.
|
||||
ERR_NAME=Enw anhysbys: \u201C%s\u201D.
|
||||
ERR_ARGUMENTS=Mae %s yn cymryd %s ymresymiad (Derbyn %s ).
|
||||
ERR_BLOCK=Gwall (bylchau ychwanegol neu goll wrth y cromfachau?)
|
||||
ERR_KEY=Elfen anhysbys: %s
|
||||
ERR_INDEX=Mynegai tu allan o'r ystod.
|
||||
|
||||
ERR_STOP=Rhaglen wedi dod i ben:
|
||||
ERR_MAXRECURSION=tu hwnt i'r uchafswm dychweliad dyfnder (%d).
|
||||
ERR_MEMORY=dim digon o gof.
|
||||
ERR_NOTAPROGRAM=Hoffech chi redeg y ddogfen testun hon?
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user