summaryrefslogtreecommitdiffstats
path: root/fop/test
diff options
context:
space:
mode:
Diffstat (limited to 'fop/test')
-rw-r--r--fop/test/events/hyphenation.fo17
-rw-r--r--fop/test/events/hyphenationfop.xconf6
-rw-r--r--fop/test/resources/fop/fr.xml16
3 files changed, 39 insertions, 0 deletions
diff --git a/fop/test/events/hyphenation.fo b/fop/test/events/hyphenation.fo
new file mode 100644
index 000000000..dbcdedbae
--- /dev/null
+++ b/fop/test/events/hyphenation.fo
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" hyphenate="true" language="fr">
+
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="simple" page-height="27.9cm" page-width="21.6cm">
+ <fo:region-body />
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="simple">
+ <fo:flow flow-name="xsl-region-body">
+
+<fo:block font-size="30pt">Text should have hyphenation:</fo:block>
+
+</fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/fop/test/events/hyphenationfop.xconf b/fop/test/events/hyphenationfop.xconf
new file mode 100644
index 000000000..2ab274395
--- /dev/null
+++ b/fop/test/events/hyphenationfop.xconf
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+
+<hyphenation-pattern lang="fr" type="xml">file:///doesntexist</hyphenation-pattern>
+
+</fop> \ No newline at end of file
diff --git a/fop/test/resources/fop/fr.xml b/fop/test/resources/fop/fr.xml
new file mode 100644
index 000000000..a7104c113
--- /dev/null
+++ b/fop/test/resources/fop/fr.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hyphenation-info>
+<hyphen-min before="2" after="3"/>
+
+<exceptions>
+</exceptions>
+
+<classes>
+
+</classes>
+<patterns>
+1he
+1lo
+</patterns>
+
+</hyphenation-info>