Skip to content

The attribbute direction=rtl wrongfully impacts layout spacing #289

Closed

Description

@webservant316

See page #4, layout example at http://stageresources.aionianbible.org/AB-RTL-TESTS/output-2020-12-16.pdf
See layout.xml at http://stageresources.aionianbible.org/AB-RTL-TESTS/input-2020-12-16.xml
See configurations at http://stageresources.aionianbible.org/AB-RTL-TESTS

The page #4 layout example has three blocks of very similar layout each with an intentional whitespace. Notice that in the 3rd block the whitespace is larger and the only difference is that the attribute direction=rtl is added.

Activity

  1. pgundlach commented on Dec 17, 2020

    @pgundlach
    Member

    Could you please make a short test file for the problem? I have all fonts here, I just need the data and input.

  2. webservant316 commented on Dec 18, 2020

    @webservant316
    Author
  3. self-assigned this
    on Dec 18, 2020
  4. added and removed
    Feedback neededUser feedback is required to keep this issue open
    on Dec 18, 2020
  5. added this to the Version 4.2 milestone on Dec 18, 2020
  6. pgundlach commented on Dec 18, 2020

    @pgundlach
    Member

    A slightly shorter example showing the problem:

    vspace

    layout.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <Layout xmlns="urn:speedata.de:2009/publisher/en" xmlns:sd="urn:speedata:2009/publisher/functions/en">
    	<Trace grid="yes" />
    
    	<DefineFontfamily name="FF-Tiny" fontsize="5" leading="5">
    		<Regular fontface="sans" />
    	</DefineFontfamily>
    
    	<SetGrid nx="2" height="15pt" />
    	<Pageformat width="5cm" height="4cm" />
    
    	<Record element="data">
    		<PlaceObject>
    			<Textblock width="1">
    				<Paragraph language="Other" textformat="left" bidi="yes">
    					<Value>A</Value>
    					<Br />
    					<Fontface fontfamily='FF-Tiny'>
    						<Br />
    					</Fontface>
    					<Value>B</Value>
    				</Paragraph>
    			</Textblock>
    		</PlaceObject>
    		<PlaceObject>
    			<Textblock width="1">
    				<Paragraph language="Other" textformat="left" bidi="yes" direction="rtl">
    					<Value>C</Value>
    					<Br />
    					<Fontface fontfamily='FF-Tiny'>
    						<Br />
    					</Fontface>
    					<Value>D</Value>
    				</Paragraph>
    			</Textblock>
    		</PlaceObject>
    	</Record>
    </Layout>

    data.xml:

    <data />
    
  7. pgundlach commented on Dec 18, 2020

    @pgundlach
    Member

    Somehow “Adjust line heights” seems to behave differently. <br> should separate the line height adjustment.

  8. added a commit that references this issue on Jul 17, 2024
    71a38b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions