Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The attribbute direction=rtl wrongfully impacts layout spacing #289

Closed
webservant316 opened this issue Dec 17, 2020 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@webservant316
Copy link

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.

@pgundlach
Copy link
Member

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

@pgundlach pgundlach added the Feedback needed User feedback is required to keep this issue open label Dec 17, 2020
@webservant316
Copy link
Author

@pgundlach pgundlach self-assigned this Dec 18, 2020
@pgundlach pgundlach added Bug and removed Feedback needed User feedback is required to keep this issue open labels Dec 18, 2020
@pgundlach pgundlach added this to the Version 4.2 milestone Dec 18, 2020
@pgundlach
Copy link
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 />

@pgundlach
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants