Skip to content

Commit

Permalink
added documentation about token hyphenation in the page schema (close…
Browse files Browse the repository at this point in the history
…s issue #4)
  • Loading branch information
mromanello committed Oct 8, 2019
1 parent f0c8f4b commit 7864709
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/page.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@
"s": {
"type": "integer",
"description": "A style ID as defined in issue.schema.json/s"
},
"gn": {
"type": "boolean",
"description": "Indicates whether the token is/should be followed by a whitespace. `gn==true` means no white space is required (`gn` stands for 'glue next'). When not specified it is assumed to be `false`."
},
"hy": {
"type": "boolean",
"description": "Indicates whether the token constitutes the first part of a hyphenated word. When not specified it is assumed to be `false`."
},
"nf": {
"type": "string",
"description": "It is specified on the second part of a hyphenated word, and contains its normalized (reconstructed) form."
}
},
"required": [
Expand Down
44 changes: 44 additions & 0 deletions docs/page.schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ All items must be of the type: `object` with following properties:
| Property | Type | Required |
| -------- | ------- | ------------ |
| `c` | array | **Required** |
| `gn` | boolean | Optional |
| `hy` | boolean | Optional |
| `nf` | string | Optional |
| `s` | integer | Optional |
| `tx` | string | **Required** |

Expand All @@ -204,6 +207,47 @@ Array type: `integer[]`

All items must be of the type: `integer`

#### gn

Indicates whether the token is/should be followed by a whitespace. `gn==true` means no white space is required (`gn`
stands for 'glue next'). When not specified it is assumed to be `false`.

`gn`

- is optional
- type: `boolean`

##### gn Type

`boolean`

#### hy

Indicates whether the token constitutes the first part of a hyphenated word. When not specified it is assumed to be
`false`.

`hy`

- is optional
- type: `boolean`

##### hy Type

`boolean`

#### nf

It is specified on the second part of a hyphenated word, and contains its normalized (reconstructed) form.

`nf`

- is optional
- type: `string`

##### nf Type

`string`

#### s

A style ID as defined in issue.schema.json/s
Expand Down
12 changes: 12 additions & 0 deletions json/newspaper/page.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@
"s": {
"type": "integer",
"description": "A style ID as defined in issue.schema.json/s"
},
"gn": {
"type": "boolean",
"description": "Indicates whether the token is/should be followed by a whitespace. `gn==true` means no white space is required (`gn` stands for 'glue next'). When not specified it is assumed to be `false`."
},
"hy":{
"type": "boolean",
"description": "Indicates whether the token constitutes the first part of a hyphenated word. When not specified it is assumed to be `false`."
},
"nf":{
"type": "string",
"description": "It is specified on the second part of a hyphenated word, and contains its normalized (reconstructed) form."
}
},
"required": ["c", "tx"]
Expand Down

0 comments on commit 7864709

Please sign in to comment.