aboutsummaryrefslogtreecommitdiffstats
path: root/test/xml/bugtests/wrap.fo
blob: 79a42192587a29fa80660c7475598f4a43b43737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
      <fo:simple-page-master master-name="simplePM"
                    page-height="25cm"
                    page-width="20cm"
                    margin-top="1cm"
                    margin-bottom="1cm"
                    margin-left="1.5cm"
                    margin-right="1.5cm">
        <fo:region-before extent="2.5cm"/>
        <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
        <fo:region-after extent="2.5cm"/>
      </fo:simple-page-master>
      <fo:simple-page-master master-name="no-overflow"
                    page-height="25cm"
                    page-width="20cm"
                    margin-top="1cm"
                    margin-bottom="1cm"
                    margin-left="1.5cm"
                    margin-right="1.5cm">
        <fo:region-before extent="2.5cm"/>
        <fo:region-body overflow="hidden" margin-top="3cm" margin-bottom="3cm"/>
        <fo:region-after extent="2.5cm"/>
      </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-reference="simplePM">
      <fo:flow flow-name="xsl-region-body">
      <fo:block>
This test is to check a number of different possibilities when dealing with
text being wrapped at the end of an area.
      </fo:block>
      <fo:block wrap-option="no-wrap">
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>

        <fo:block space-before.optimum="1cm" wrap-option="wrap">
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        </fo:block>
        This is simple fo block.This is simple fo block.This is simple fo block.This is simple fo block.
        This is simple fo block.This is simple fo block.This is simple fo block.This is simple fo block.
      </fo:block>
      <fo:block space-before.optimum="10pt">
Some examples in a table.
      </fo:block>
<fo:table border-style="solid" border-width="1pt" border-color="blue">
<fo:table-column column-width="50pt"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
      <fo:block>
a normal paragraph with spaces and normal words
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block wrap-option="no-wrap" space-before.optimum="5pt">
a normal paragraph with spaces and normal words
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block space-before.optimum="5pt">
areallylongwordwhichisreallymanywords
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block wrap-option="no-wrap" space-before.optimum="5pt">
areallylongwordwhichisreallymanywords
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block space-before.optimum="5pt"
                language="en"
                country="GB"
                hyphenate="true"
                hyphenation-push-character-count="2"
                hyphenation-remain-character-count="2">
words with hypenation the activated when doing lots of wrapping
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block space-before.optimum="5pt"
                language="en"
                country="GB"
                hyphenate="true"
                hyphenation-push-character-count="2"
                hyphenation-remain-character-count="2">
interdependancy is a nice long word
      </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
      <fo:block space-before.optimum="5pt"
                wrap-option="no-wrap"
                language="en"
                country="UK"
                hyphenate="true"
                hyphenation-push-character-count="2"
                hyphenation-remain-character-count="2">
words with hypenation the activated when not doing lots of wrapping
      </fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence master-reference="no-overflow">
      <fo:flow flow-name="xsl-region-body">
      <fo:block wrap-option="no-wrap">
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>

        <fo:block space-before.optimum="1cm" wrap-option="wrap">
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
          <fo:inline>This is a simple fo block.This is a simple fo block.This is a simple fo block.</fo:inline>
        </fo:block>
        This is simple fo block.This is simple fo block.This is simple fo block.This is simple fo block.
        This is simple fo block.This is simple fo block.This is simple fo block.This is simple fo block.
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>