Skip to content

Commit

Permalink
Pdf text direction layout (#319)
Browse files Browse the repository at this point in the history
This pull requests introduces a new annotation which indicates if PDF
supports setting the text direction-layout for a document. This is
required for supporting RTL (right-to-left)-languages.

---------

Co-authored-by: Heiko Theißen <[email protected]>
  • Loading branch information
fb0d3nheimer and HeikoTheissen authored Jun 11, 2024
1 parent 29178b4 commit 9dd8813
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vocabularies/PDF.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
"@Common.Experimental": true,
"@Core.Description": "Treeview output supported",
"@Core.LongDescription": "If this is true, treeview output is supported for hierarchical data"
},
"TextDirectionLayout": {
"$Type": "Edm.Boolean",
"$DefaultValue": false,
"@Core.Description": "Setting the text direction-layout is supported",
"@Core.LongDescription": "PDF supports setting the text direction-layout (e.g. left-to-right or right-to-left) in the document description"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions vocabularies/PDF.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Property|Type|Description
[ResultSizeMaximum](./PDF.xml#L96:~:text=<ComplexType%20Name="-,FeaturesType,-")|Int32?|Maximum result size<br>Max result size for PDF documents. Used if $top has been provided and $top > ResultSizeMaximum
[IANATimezoneFormat](./PDF.xml#L102:~:text=<ComplexType%20Name="-,FeaturesType,-")|Boolean|If this is true, the PDF format supports formatting columns of type `Edm.DateTimeOffset` in a IANA time zone given in the document description
[Treeview](./PDF.xml#L105:~:text=<ComplexType%20Name="-,FeaturesType,-") *([Experimental](Common.md#Experimental))*|Boolean|Treeview output supported<br>If this is true, treeview output is supported for hierarchical data
[TextDirectionLayout](./PDF.xml#L112:~:text=<ComplexType%20Name="-,FeaturesType,-")|Boolean|Setting the text direction-layout is supported<br>PDF supports setting the text direction-layout (e.g. left-to-right or right-to-left) in the document description
6 changes: 6 additions & 0 deletions vocabularies/PDF.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
<String>If this is true, treeview output is supported for hierarchical data</String>
</Annotation>
</Property>
<Property Name="TextDirectionLayout" Type="Edm.Boolean" Nullable="false" DefaultValue="false">
<Annotation Term="Core.Description" String="Setting the text direction-layout is supported" />
<Annotation Term="Core.LongDescription">
<String>PDF supports setting the text direction-layout (e.g. left-to-right or right-to-left) in the document description</String>
</Annotation>
</Property>
</ComplexType>

</Schema>
Expand Down

0 comments on commit 9dd8813

Please sign in to comment.