[xep-support] Re: Line breaking at a hyphen mark

Pilecki Konstanty KPilecki at wolterskluwer.pl
Thu Aug 7 02:46:45 PDT 2014


Hello Kevin,

There is a sample FO document attached here. The one is perfectly rendered by AH Formatter (see the PDF file). I would like to have the same result using XEP RenderX. Is it possible?
Please pay attention, that  an additional hyphen occurs on a trailing line if and only if the line is broken at the place, where two words are joined with a hyphen mark. Such are the demands of the Polish orthography.

Regards,
Konstanty

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of Kevin Brown
Sent: Wednesday, August 06, 2014 9:25 PM
To: 'RenderX Community Support List'
Subject: [xep-support] Re: Line breaking at a hyphen mark

Without a sample, it's hard to see what exactly you desire.
Certainly there is no design in the engine to automatically insert the start hyphen on the trailing line, it can and does at the break on the end of the line, but not at the start of the following line.

  Hyphena-
-tion

I drew in this fashion as typically the hyphens would be outside the bounds of the flow, not inside.

If you are inserting them manually, why not just insert a linefeed, followed an inline with negative padding if you wish it to be inside the left margin?
So I do not understand I guess.

If you wish them "automatically" when hyphenation occurs, I am not sure there is even a solution even in modification of the intermediate format. One would need to search and find all places hyphenation was inserted and insert something on the next line ... which becomes difficult in understanding "next line" especially in tables or across pages.

Kevin Brown
RenderX




From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of Pilecki Konstanty
Sent: Wednesday, August 06, 2014 4:40 AM
To: xep-support at renderx.com<mailto:xep-support at renderx.com>
Subject: [xep-support] Line breaking at a hyphen mark

Hello,

My problem concerns a hyphenation. Let us have a piece of text with a hyphen, for example Sklodowska-Curie. When the text has been broken by a RenderX after the hyphen, I would like to achieve an additional hyphen mark at the beginning of the new line, as follow: Sklodowska-/-Curie (but not: Sklodowska-/Curie).

I have tried to resolve the problem adding, sequentially, a soft-hyphen (&#x00AD;) and a zero-width space (&#x200B;) characters before the hyphen mark and a joiner character (&#x2060;) after it. The result is quite good but, unfortunately, the joiner character is unnecessarily visible in the text rendered to PDF (as a rectangle mark). Is there any better way to manage this problem?

I would be grateful for any advice.

Regards,

Konstanty


________________________________
Niniejszy e-mail może zawierać informacje poufne, a nadto może stanowić przedmiot praw własności intelektualnej i/lub tajemnicę przedsiębiorstwa Wolters Kluwer S.A., ul. Przyokopowa 33, 01-208 Warszawa, Sąd Rejonowy dla m.st. Warszawy Wydział XII Gospodarczy Krajowego Rejestru Sądowego (miejsce przechowywania dokumentacji spółki), KRS 0000441434, NIP 583-001-89-31, REGON 190610277, kapitał zakładowy 5.162..518 PLN (wpłacony w całości). Jeśli nie jest Pan/Pani adresatem niniejszego e-maila, uprasza się o niezwłoczne zawiadomienie nadawcy o jego otrzymaniu oraz o jego usunięcie. Jakiekolwiek wykorzystanie, w tym rozpowszechnianie lub ujawnianie, niniejszego e-maila jest zakazane.



!DSPAM:87,53e34b1910101294768012!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20140807/58482557/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: soft-hyphen-example_ah.pdf
Type: application/pdf
Size: 44886 bytes
Desc: soft-hyphen-example_ah.pdf
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20140807/58482557/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: soft-hyphen-example.fo
Type: application/octet-stream
Size: 2932 bytes
Desc: soft-hyphen-example.fo
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20140807/58482557/attachment-0001.obj>


More information about the Xep-support mailing list