Skip to content

Commit

Permalink
row tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
fscelliott committed Nov 12, 2024
1 parent 9c031ad commit d4805df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 54 deletions.
Binary file modified readme-sync/assets/v0/images/screenshots/row_align.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hidden: false
---
Matches all lines to the left or right of the anchor line.

A "row" is lines of text distributed along a horizontal line. By default, each matching line in the "row" must have a top boundary that's within 0.08 inches below or above the anchor's top boundary (total range is 0.16" inches). For example, the following image shows a red line that defines the alignment for a row of text:
A "row" is lines of text distributed along a horizontal line. By default, each matching line in the "row" must have a top boundary that's within 0.08 inches below or above the anchor's top boundary (total range is 0.16" inches). For example, the following image shows a red line that defines the alignment for the row of text that begins with "Python":

![Click to enlarge](https://raw.githubusercontent.com/sensible-hq/sensible-docs/main/readme-sync/assets/v0/images/final/row_align.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Sensible supports both built-in and extended JsonLogic operators:
- Sensible supports extended operations available in the [Json Logic Engine](https://jessemitchell.me/json-logic-engine/). For more information, see the [documentation](https://jessemitchell.me/json-logic-engine/docs/math). For example, this engine includes the following extended operations:
- Array operations: `"length"`, `"get"`.
- Miscellaneous operations: `"preserve"`, `"keys"`.
- Higher order operations: `"every"`, `"eachKey"`.
- Higher order operations: `"every"`, [`"eachKey"`](https://jessemitchell.me/json-logic-engine/docs/higher/#each-key).
- Sensible extends JsonLogic with custom operations. The following table lists these operations and where they're supported:

| Operation | [Validations](doc:validate-extractions) | [Custom computation](doc:custom-computation) method | [Postprocessor](doc:postprocessor) |
Expand Down Expand Up @@ -181,25 +181,8 @@ See [Validating extractions](doc:validate-extractions#examples).

## Object

Returns a JSON object that is an array of key/value pairs. You can nest object operations to build complex custom objects. Note that the `"eachKey"` operation is an alternative to this operation.
Returns a JSON object that is an array of key/value pairs. You can nest object operations to build complex custom objects. This operation is an alternative to the `"eachKey"` when the keys in the object you intend to build can vary depending on a calculation:

Use this operation instead of `"eachKey"` when the keys in the object you intend to build can vary depending on a calculation (i.e., the second of the following syntaxes).

One of the following syntaxes:

```json
{
/* Sensible recommends using the "eachKey" operator instead of this syntax */
"object": [
[
["desiredKeyName", JsonLogic],
["desiredKeyName", JsonLogic]
]
]
}
```

Or:

```json
{
Expand All @@ -212,40 +195,6 @@ Or:
}
```

As a simple example,

```json
{
"object": [
[
[
"customer_name",
"Erika Mustermann"
],
[
"customer_acct",
{
// where the extracted field `account_number` has value `12345`
"var": "account_number.value"
}
]
]
]
}
```

returns:

```json
{
"customer_name": "Erika Mustermann",
"customer_acct": 12345
}
```

### Examples

See [Postprocessor](doc:postprocessor#examples).

## Replace

Expand Down

0 comments on commit d4805df

Please sign in to comment.