From 39ec56dd4e2116d813d3bc26eafb763923952bcf Mon Sep 17 00:00:00 2001 From: Adolfo Jayme Barrientos Date: Thu, 20 Oct 2022 06:23:59 -0500 Subject: [PATCH] Typo grab bag Change-Id: I5065a95400934026fb8a52dbeb72793c66b8caf5 --- source/text/sbasic/shared/03/sf_calc.xhp | 2 +- source/text/sbasic/shared/03/sf_menu.xhp | 2 +- source/text/sbasic/shared/03/sf_popupmenu.xhp | 8 ++++---- source/text/sbasic/shared/03/sf_region.xhp | 2 +- source/text/sbasic/shared/03/sf_session.xhp | 2 +- source/text/sbasic/shared/03/sf_string.xhp | 16 ++++++++-------- source/text/sbasic/shared/03/sf_ui.xhp | 4 ++-- source/text/scalc/01/solver_options_algo.xhp | 2 +- source/text/scalc/01/sparklines.xhp | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/source/text/sbasic/shared/03/sf_calc.xhp b/source/text/sbasic/shared/03/sf_calc.xhp index 8b143da7ff..0dd706d181 100644 --- a/source/text/sbasic/shared/03/sf_calc.xhp +++ b/source/text/sbasic/shared/03/sf_calc.xhp @@ -1725,7 +1725,7 @@ arrData(0, 1) = "One" : arrData(1, 1) = "Two" : arrData(2, 1) = "Three" oDoc.SetArray("Sheet1.A1", arrData) - This example uses the RangeInit method of the ScriptForge Array service to create an array with values that are then stored from cell "A1" and downwards. + This example uses the RangeInit method of the ScriptForge Array service to create an array with values that are then stored from cell "A1" and downwards. 'Fill 1st column with values from 1 to 1000 oDoc.SetArray("Sheet1.A1", SF_Array.RangeInit(1, 1000)) diff --git a/source/text/sbasic/shared/03/sf_menu.xhp b/source/text/sbasic/shared/03/sf_menu.xhp index 162c63083d..6e19b76f3e 100644 --- a/source/text/sbasic/shared/03/sf_menu.xhp +++ b/source/text/sbasic/shared/03/sf_menu.xhp @@ -186,7 +186,7 @@ oMenu.AddItem("Item C>Item C.2>Item C.2.3") oMenu.AddItem("Item C>Item C.2>Item C.2.4") - The string "---" is used to define line separators in menus or submenus. + The string --- is used to define separator lines in menus or submenus./note>

Methods

diff --git a/source/text/sbasic/shared/03/sf_popupmenu.xhp b/source/text/sbasic/shared/03/sf_popupmenu.xhp index b36ebbda39..51c155b688 100644 --- a/source/text/sbasic/shared/03/sf_popupmenu.xhp +++ b/source/text/sbasic/shared/03/sf_popupmenu.xhp @@ -131,7 +131,7 @@ String - Character used to define the access key of a menu item. The default character is "~". + Character used to define the access key of a menu item. The default character is ~. @@ -145,7 +145,7 @@ String - Character or string that defines how menu items are nested. The default character is ">". + Character or string that defines how menu items are nested. The default character is >. @@ -165,7 +165,7 @@ ' Item C.2.3 ' Item C.2.4 - The code below uses the default submenu character ">" to create the menu/submenu hierarchy defined above: + The code below uses the default submenu character > to create the menu/submenu hierarchy defined above: myPopup.AddItem("Item A") myPopup.AddItem("Item B>Item B.1") @@ -179,7 +179,7 @@ myPopup.AddItem("Item C>Item C.2>Item C.2.3") myPopup.AddItem("Item C>Item C.2>Item C.2.4") - The string "---" is used to define line separators in menus or submenus.. + The string --- is used to define separator lines in menus or submenus.

Using icons

Items in the menu can have icons, which are specified as arguments in the AddCheckBox, AddItem and AddRadioButton methods. diff --git a/source/text/sbasic/shared/03/sf_region.xhp b/source/text/sbasic/shared/03/sf_region.xhp index df0aec3b3f..72ab4395cb 100644 --- a/source/text/sbasic/shared/03/sf_region.xhp +++ b/source/text/sbasic/shared/03/sf_region.xhp @@ -43,7 +43,7 @@ On some situations the full locale is not required and only the language or country may be specified. Most properties and methods accept a locale as argument. If no locale is specified, then the user-interface locale is used, which is defined in the OfficeLocale property of the Platform service.

Timezone

- A string in the format "Region/City" such as "Europe/Berlin", or a timezone ID such as "UTC" or "GMT-8:00". Refer to the wiki page List of tz database and timezones for a list of possible timezone names and IDs. + A string in the format "Region/City" such as "Europe/Berlin", or a timezone ID such as "UTC" or "GMT-8:00". Refer to the wiki page List of tz database timezones for a list of possible timezone names and IDs. Providing an invalid timezone string to any of the methods in the Region service will not result in a runtime error. Instead, methods as UTCDateTime and UTCNow will return the current operating system date and time. The time offset between the timezone and the Greenwich Meridian Time (GMT) is expressed in minutes. The Daylight Saving Time (DST) is an additional offset. diff --git a/source/text/sbasic/shared/03/sf_session.xhp b/source/text/sbasic/shared/03/sf_session.xhp index 477445ea65..a5a788cc4f 100644 --- a/source/text/sbasic/shared/03/sf_session.xhp +++ b/source/text/sbasic/shared/03/sf_session.xhp @@ -214,7 +214,7 @@ Session service;ExecuteBasicScript

ExecuteBasicScript

- Execute the Basic script given its name and location and fetch its result if any. + Execute the BASIC script given its name and location, and fetch its result, if any. If the script returns nothing, which is the case of procedures defined with Sub, the returned value is Empty. diff --git a/source/text/sbasic/shared/03/sf_string.xhp b/source/text/sbasic/shared/03/sf_string.xhp index 2ca692c212..eaaf5c10e0 100644 --- a/source/text/sbasic/shared/03/sf_string.xhp +++ b/source/text/sbasic/shared/03/sf_string.xhp @@ -150,7 +150,7 @@

Non-printable characters:

Characters defined in the Unicode Character Database as “Other” or “Separator” are considered as non-printable characters. - Control characters (ascii code <= 0x1F) are also considered as non-printable. + Control characters (ASCII code <= 0x1F) are also considered as non-printable.

Quotes inside strings:

To add quotes in strings use \' (single quote) or \" (double quote). For example: @@ -643,7 +643,7 @@ String service;IsAscii

IsAscii

- Returns True if all characters in the string are Ascii characters. + Returns True if all characters in the string are ASCII characters. svc.IsAscii(inputstr: str): bool @@ -1058,7 +1058,7 @@ inputstr: The string to be center-justified. If empty, the method returns an empty string. length: The length of the resulting string (default = the length of the input string). If the specified length is shorter than the center-justified input string, then the returned string is truncated. - padding: The single character to be used as padding (default = the Ascii space " "). + padding: The single character to be used as padding (default = the ASCII space " "). MsgBox SF_String.JustifyCenter("Title", Length := 11) ' " Title " @@ -1083,7 +1083,7 @@ inputstr: The string to be left-justified. If empty, the method returns an empty string. length: The length of the resulting string (default = the length of the input string). If the specified length is shorter than the left-justified input string, then the returned string is truncated. - padding: The single character to be used as padding (default = the Ascii space " "). + padding: The single character to be used as padding (default = the ASCII space " "). MsgBox SF_String.JustifyLeft("Title", Length := 10) ' "Title " @@ -1108,7 +1108,7 @@ inputstr: The string to be right-justified. If empty, the method returns an empty string. length: The length of the resulting string (default = the length of the input string). If the specified length is shorter than the right-justified input string, then the returned string is truncated. - padding: The single character to be used as padding (default = the Ascii space " "). + padding: The single character to be used as padding (default = the ASCII space " "). MsgBox SF_String.JustifyRight("Title", Length := 10) ' " Title" @@ -1335,7 +1335,7 @@ inputstr: The string to be split. - delimiter: A string of one or more characters that will be used as delimiter. The default delimiter is the Ascii space " " character. + delimiter: A string of one or more characters that will be used as delimiter. The default delimiter is the ASCII space " " character. occurrences: The maximum number of substrings to return. The default value is 0, meaning that there is no limit to the number of returned strings. quotechar: Either the single (') or double (") quote. @@ -1414,7 +1414,7 @@ String service;Unescape

Unescape

- Converts any escaped sequence (\\, \n, \r, \t) in the input string to their corresponding Ascii character. + Converts any escaped sequence (\\, \n, \r, \t) in the input string to their corresponding ASCII character. svc.Unescape(inputstr: str): str @@ -1466,7 +1466,7 @@ Converts the input string into an array of substrings so that each item in the array has at most a given number of characters. In practice, this method returns a zero-based array of output lines, without newlines at the end, except for the pre-existing line-breaks. Tabs are expanded using the same procedure performed by the ExpandTabs method. - Symbolic line breaks are replaced by their equivalent Ascii characters. + Symbolic line breaks are replaced by their equivalent ASCII characters. If the wrapped output has no content, the returned array is empty. diff --git a/source/text/sbasic/shared/03/sf_ui.xhp b/source/text/sbasic/shared/03/sf_ui.xhp index 313577f485..82585a4519 100644 --- a/source/text/sbasic/shared/03/sf_ui.xhp +++ b/source/text/sbasic/shared/03/sf_ui.xhp @@ -485,7 +485,7 @@ ui.OpenBaseDocument(r"C:\Documents\myDB.odb", macroexecution = ui.MACROEXECALWAYS) - To improve code readability you can use predefined constants for the macroexecution argument, as in the examples above. + To improve code readability you can use predefined constants for the macroexecution argument, as in the examples above.
@@ -494,7 +494,7 @@ UI service;OpenDocument

OpenDocument (*)

- Opens an existing %PRODUCTNAME document with the given options. Returns a document object or one of its subclasses. The method returns Nothing (in Basic) / None (in Python) if the opening failed, even when the failure is caused by a user decision. + Opens an existing %PRODUCTNAME document with the given options. Returns a document object or one of its subclasses. The method returns Nothing (in BASIC) or None (in Python) if the opening failed, even when the failure is caused by a user decision. svc.Opendocument(filename: str, password: str = '', readonly: bool = False, hidden: bool = False, macroexecution: int = 0, filtername: str = '', filteroptions: str = ''): svc diff --git a/source/text/scalc/01/solver_options_algo.xhp b/source/text/scalc/01/solver_options_algo.xhp index 9ad02f74aa..89f2e62ae4 100644 --- a/source/text/scalc/01/solver_options_algo.xhp +++ b/source/text/scalc/01/solver_options_algo.xhp @@ -38,7 +38,7 @@

Solver Algorithms Options

DEPS Evolutionary Algorithm

- DEPS consists of two independent algorithms: Differential Evolution and Particle Swarm Optimization. Both are especially suited for numerical problems, such as nonlinear optimization, and are complementary to each other in that they even out their others shortcomings. + DEPS consists of two independent algorithms: Differential Evolution and Particle Swarm Optimization. Both are especially suited for numerical problems, such as nonlinear optimization, and are complementary to each other in that they even out each other’s shortcomings. diff --git a/source/text/scalc/01/sparklines.xhp b/source/text/scalc/01/sparklines.xhp index 70d9c1b0ee..e7f4a95844 100644 --- a/source/text/scalc/01/sparklines.xhp +++ b/source/text/scalc/01/sparklines.xhp @@ -28,7 +28,7 @@ Sparklines are defined for one cell, but multiple sparklines can be joined together into a group. The group shares the same properties for rendering the sparkline. The unique data that is defined only for one sparkline is the data range, that a sparkline will use for rendering.
- Choose Insert – Sparklines + Choose Insert - Sparkline.

Data

Input range: enter the cell range of the data. Use the shrink button to select the data range with the mouse. @@ -60,7 +60,7 @@ Display hidden: check to show all columns or stacks in the range even when the data is in hidden cells. If unchecked, the hidden data is ignored. - Right-to-left: check to display the sparklines reverse order of the data. + Right-to-left: check to have the sparklines show the data in reverse order.

Colors

Series: select the main color for the sparklines. Negative points: check and select the color for negative points.