Bug 51915 - Line breaking in FOP is different from other tools, for example TLF.
Summary: Line breaking in FOP is different from other tools, for example TLF.
Status: CLOSED LATER
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 12:52 UTC by Aleksey Hlyavich
Modified: 2012-04-30 00:25 UTC (History)
0 users



Attachments
Patch to make FOP ignoring too loose or too tight lines. (668 bytes, application/octet-stream)
2011-09-29 12:52 UTC, Aleksey Hlyavich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Hlyavich 2011-09-29 12:52:52 UTC
Created attachment 27632 [details]
Patch to make FOP ignoring too loose or too tight lines.

We use TLF to dispose the text in the region on web-page and then we want to convert it to pdf. But in pdf document and in web-page some words are placed in different lines. I understand, that TLF and FOP use different line breaking algorithm, but maybe FOP has possibility to use more simple algorithm not to "align" the text? I offer a simple code change to make FOP ignoring too loose or too tight lines. Patch is attached.
Comment 1 Glenn Adams 2012-04-04 22:26:44 UTC
patch is insufficient as specified; the following would need to be added to consider landing this patch:

(1) propose a property for controlling line fitting, such as http://www.w3.org/TR/css3-text/#line-break or an fox:line-break, fox:line-fitting, etc;

(2) make use of said property to determine whether to use existing or new behavior;

(2) provide unit test files that test each value of said property and consequent behavior;

moving to resolved+later pending further input of a patch
Comment 2 Glenn Adams 2012-04-30 00:25:03 UTC
batch transition resolved+later to closed+later; if you have new information or a patch that addresses the issue, you may reopen