[ 
https://issues.apache.org/jira/browse/FOP-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035880#comment-18035880
 ] 

Joao Goncalves edited comment on FOP-3005 at 11/14/25 3:34 PM:
---------------------------------------------------------------

I managed to get the hyphenation to work even when the language is set to en.

It doens't seem to be related to language, but seem like the 
hyphenation="false" is not working.

Update: Inline are hyphenated if it's parents are hyphenated, hence why we 
can't change it's hyphenation value. It also looks like the hyphens in the url 
are being seen as hyphenation points, so perhaps we are able to go around that 
by adding the url as an hyphenation exception. Not sure how one can do that 
with the hyphens though. 


was (Author: JIRAUSER302961):
I managed to get the hyphenation to work even when the language is set to en.

It doens't seem to be related to language, but seem like the 
hyphenation="false" is not working

> Hyphenation: Any non-English language prevents inherited hyphenate="true" 
> from being overridden
> -----------------------------------------------------------------------------------------------
>
>                 Key: FOP-3005
>                 URL: https://issues.apache.org/jira/browse/FOP-3005
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.6
>            Reporter: Jay
>            Assignee: Joao Goncalves
>            Priority: Major
>         Attachments: 198877.fo, 198877.pdf, Pdf properties to cross 
> check.png, input.fo, out_de.pdf, out_en.pdf, screenshot-1.png, 
> screenshot-2.png
>
>
> Overriding an inherited {{hyphenate="true"}} (e. g. to prevent words from 
> being hyphenated) is not possible if the language is any other than English. 
> Consider this example:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <root xmlns="http://www.w3.org/1999/XSL/Format";>
>     <layout-master-set>
>         <simple-page-master master-name="the-master-name" page-height="29.7cm"
>                             page-width="21.0cm" margin-top="1.21cm"
>                             margin-bottom=".8cm" margin-left="2.4cm"
>                             margin-right="1.5cm">
>             <region-body region-name="the-region-body"/>
>         </simple-page-master>
>     </layout-master-set>
>     <page-sequence master-reference="the-master-name" xml:lang="en">
>         <flow flow-name="the-region-body">
>             <block hyphenate="true">
>                 Whereas recognition of the inherent dignity and of the equal 
> and
>                 inalienable rights of all members of the human family is the
>                 foundation of freedom, justice and peace in the world, Whereas
>                 disregard and contempt for human rights have resulted in
>                 barbarous acts which have outraged the conscience of mankind,
>                 and the advent of a
>                 <inline hyphenate="false" keep-together="always">
>                     http://www.some-link-that-must-not-be-hyphenated.com
>                 </inline>
>                 world in which human beings shall enjoy freedom of speech and
>                 belief and freedom from fear and want has been proclaimed as 
> the
>                 highest aspiration of the common people
>             </block>
>         </flow>
>     </page-sequence>
> </root>
> {code}
> The link 
> {{[http://www.some-link-that-must-not-be-hyphenated.com|http://www.some-link-that-must-not-be-hyphenated.com/]}}
>  as expected is not getting hyphenated. However, once I set 
> {{xml:lang="de"}}, both the attributes {{hyphenate="false"}} and 
> {{keep-together="always"}} inside the {{inline}} tag will be ignored. The 
> link will be hyphenated, _not_ as expected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to