British and American English are different in their hyphenation (eg.
pleas•ure and plea•sure), but OpenOffice.org and LibreOffice use also
British hyphenation for American English texts. The attached patch
change dictionaries.xcu to fix the problem, but it seems, this is not
enough for the fix.

If I right remember, I have reported this problem (maybe newly
introduced in OOo 3.3) for OOo, thinking that this problem is only a
configuration problem. Maybe a quick solution is to separate en_US and
en_GB dictionary extensions.

Best regards,
Laci
From e50dde276cf2c963859c5a00b8cf4ae016eac0fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A1szl=C3=B3=20N=C3=A9meth?= <nem...@numbertext.org>
Date: Fri, 7 Oct 2011 16:43:54 +0200
Subject: [PATCH] Add American English hyphenation for en_US and en-PH instead of British

---
 dictionaries/en/dictionaries.xcu |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dictionaries/en/dictionaries.xcu b/dictionaries/en/dictionaries.xcu
index 4746419..81e7142 100644
--- a/dictionaries/en/dictionaries.xcu
+++ b/dictionaries/en/dictionaries.xcu
@@ -65,7 +65,18 @@
                 <value>DICT_HYPH</value>
             </prop>
             <prop oor:name="Locales" oor:type="oor:string-list">
-                <value>en-GB en-US en-PH en-ZA en-NA en-ZW en-AU en-CA en-IE en-IN en-BZ en-BS en-GH en-JM en-NZ en-TT</value>
+                <value>en-GB en-ZA en-NA en-ZW en-AU en-CA en-IE en-IN en-BZ en-BS en-GH en-JM en-NZ en-TT</value>
+            </prop>
+        </node>
+        <node oor:name="HyphDic_en-US" oor:op="fuse">
+            <prop oor:name="Locations" oor:type="oor:string-list">
+                <value>%origin%/hyph_en_US.dic</value>
+            </prop>
+            <prop oor:name="Format" oor:type="xs:string">
+                <value>DICT_HYPH</value>
+            </prop>
+            <prop oor:name="Locales" oor:type="oor:string-list">
+                <value>en-US en-PH</value>
             </prop>
         </node>
         <node oor:name="ThesDic_en-US" oor:op="fuse">
-- 
1.7.4.1

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to