Author: ssteiner
Date: Thu Mar 31 08:58:55 2016
New Revision: 1737204

URL: http://svn.apache.org/viewvc?rev=1737204&view=rev
Log:
FOP-2597: Allow hyphenation file without extension

Modified:
    
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java

Modified: 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java?rev=1737204&r1=1737203&r2=1737204&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
 (original)
+++ 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
 Thu Mar 31 08:58:55 2016
@@ -338,10 +338,10 @@ public class FopConfParser {
 
                 String llccKey = HyphenationTreeCache.constructLlccKey(lang, 
country);
 
-                String type = aHyphPatConfig.getAttribute("type", null);
-                if ("xml".equals(type)) {
+                String extension = aHyphPatConfig.getAttribute("extension", 
null);
+                if ("xml".equals(extension)) {
                     hyphPatNames.put(llccKey, filename + Hyphenator.XMLTYPE);
-                } else if ("hyp".equals(type)) {
+                } else if ("hyp".equals(extension)) {
                     hyphPatNames.put(llccKey, filename + Hyphenator.HYPTYPE);
                 } else {
                     hyphPatNames.put(llccKey, filename);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to