[ 
https://issues.apache.org/jira/browse/FOP-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Donart updated FOP-3005:
-----------------------------
    Description: 
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:

{{<?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,

                Whereas it is essential, if man is not to be compelled to have 
recourse, as a last resort, to rebellion against tyranny and oppression, that
                human rights should be protected by the rule of law,

                Whereas it is essential to promote the development of friendly 
relations between nations,

                Whereas the peoples of the United Nations have in the Charter 
reaffirmed their faith in fundamental human rights, in the dignity and worth of
                the human person and in the equal rights of men and women and 
have determined to promote social progress and better standards of life in 
larger
                freedom,

                Whereas Member States have pledged themselves to achieve, in 
co-operation with the United Nations, the promotion of universal respect for and
                observance of human rights and fundamental freedoms,
            </block>
        </flow>
    </page-sequence>
</root>}}

The link {{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.

  was:
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:

<?{color:#174ad4}xml version{color}{color:#067d17}="1.0" 
{color}{color:#174ad4}encoding{color}{color:#067d17}="UTF-8"{color}?>
<{color:#0033b3}root 
{color}{color:#174ad4}xmlns{color}{color:#067d17}="http://www.w3.org/1999/XSL/Format"{color}>
 <{color:#0033b3}layout-master-set{color}>
 <{color:#0033b3}simple-page-master 
{color}{color:#174ad4}master-name{color}{color:#067d17}="the-master-name" 
{color}{color:#174ad4}page-height{color}{color:#067d17}="29.7cm" 
{color}{color:#174ad4}page-width{color}{color:#067d17}="21.0cm" 
{color}{color:#174ad4}margin-top{color}{color:#067d17}="1.21cm" 
{color}{color:#174ad4}margin-bottom{color}{color:#067d17}=".8cm" 
{color}{color:#174ad4}margin-left{color}{color:#067d17}="2.4cm"
{color} {color:#174ad4}margin-right{color}{color:#067d17}="1.5cm"{color}>
 <{color:#0033b3}region-body 
{color}{color:#174ad4}region-name{color}{color:#067d17}="the-region-body"{color}/>
 </{color:#0033b3}simple-page-master{color}>
 </{color:#0033b3}layout-master-set{color}>
 <{color:#0033b3}page-sequence 
{color}{color:#174ad4}master-reference{color}{color:#067d17}="the-master-name" 
{color}{color:#871094}xml{color}{color:#174ad4}:lang{color}{color:#067d17}="en"{color}>
 <{color:#0033b3}flow 
{color}{color:#174ad4}flow-name{color}{color:#067d17}="the-region-body"{color}>
 <{color:#0033b3}block 
{color}{color:#174ad4}hyphenate{color}{color:#067d17}="true"{color}>
 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 <{color:#0033b3}inline 
{color}{color:#174ad4}hyphenate{color}{color:#067d17}="false" 
{color}{color:#174ad4}keep-together{color}{color:#067d17}="always"{color}>http://www.some-link-that-must-not-be-hyphenated.com</{color:#0033b3}inline{color}>
 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,

 Whereas it is essential, if man is not to be compelled to have recourse, as a 
last resort, to rebellion against tyranny and oppression, that
 human rights should be protected by the rule of law,

 Whereas it is essential to promote the development of friendly relations 
between nations,

 Whereas the peoples of the United Nations have in the Charter reaffirmed their 
faith in fundamental human rights, in the dignity and worth of
 the human person and in the equal rights of men and women and have determined 
to promote social progress and better standards of life in larger
 freedom,

 Whereas Member States have pledged themselves to achieve, in co-operation with 
the United Nations, the promotion of universal respect for and
 observance of human rights and fundamental freedoms,
 </{color:#0033b3}block{color}>
 </{color:#0033b3}flow{color}>
 </{color:#0033b3}page-sequence{color}>
</{color:#0033b3}root{color}>


> 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
>            Reporter: Jens Donart
>            Priority: Major
>
> 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:
> {{<?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,
>                 Whereas it is essential, if man is not to be compelled to 
> have recourse, as a last resort, to rebellion against tyranny and oppression, 
> that
>                 human rights should be protected by the rule of law,
>                 Whereas it is essential to promote the development of 
> friendly relations between nations,
>                 Whereas the peoples of the United Nations have in the Charter 
> reaffirmed their faith in fundamental human rights, in the dignity and worth 
> of
>                 the human person and in the equal rights of men and women and 
> have determined to promote social progress and better standards of life in 
> larger
>                 freedom,
>                 Whereas Member States have pledged themselves to achieve, in 
> co-operation with the United Nations, the promotion of universal respect for 
> and
>                 observance of human rights and fundamental freedoms,
>             </block>
>         </flow>
>     </page-sequence>
> </root>}}
> The link {{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.3.4#803005)

Reply via email to