Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8d1a2b4f
Kaydet (Commit)
8d1a2b4f
authored
Haz 29, 2012
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update LanguageTool to version 1.7 + passive registration
Change-Id: I43c6235546976f6d17bcd782b370e9fa2264f2b6
üst
41ac890a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
50 deletions
+92
-50
JLanguageTool-1.4.0-no-hc.patch
languagetool/JLanguageTool-1.4.0-no-hc.patch
+4
-4
JLanguageTool-1.7.0.patch
languagetool/JLanguageTool-1.7.0.patch
+83
-41
makefile.mk
languagetool/makefile.mk
+4
-4
ooo.lst.in
ooo.lst.in
+1
-1
No files found.
languagetool/JLanguageTool-1.4.0-no-hc.patch
Dosyayı görüntüle @
8d1a2b4f
--- misc/JLanguageTool-1.
4
.0/build.xml 2012-02-29 22:18:05.118789546 +0100
+++ misc/build/JLanguageTool-1.
4
.0/build.xml 2012-02-29 22:17:02.385235706 +0100
--- misc/JLanguageTool-1.
7
.0/build.xml 2012-02-29 22:18:05.118789546 +0100
+++ misc/build/JLanguageTool-1.
7
.0/build.xml 2012-02-29 22:17:02.385235706 +0100
@@ -82,7 +82,6 @@
<include name="openoffice/Linguistic.xcu"/>
<include name="openoffice/description.xml"/>
...
...
@@ -8,8 +8,8 @@
<include name="openoffice/images/LanguageToolBig.png"/>
<include name="openoffice/images/LanguageToolSmall.png"/>
<include name="openoffice/images/dialog.png"/>
--- misc/JLanguageTool-1.
4
.0/openoffice/Linguistic.xcu 2011-06-26 20:29:43.000000000 +0200
+++ misc/build/JLanguageTool-1.
4
.0/openoffice/Linguistic.xcu 2012-02-29 22:17:25.551071099 +0100
--- misc/JLanguageTool-1.
7
.0/openoffice/Linguistic.xcu 2011-06-26 20:29:43.000000000 +0200
+++ misc/build/JLanguageTool-1.
7
.0/openoffice/Linguistic.xcu 2012-02-29 22:17:25.551071099 +0100
@@ -27,9 +27,6 @@
<prop oor:name="SpellAndGrammarDialogImage" oor:type="xs:string">
<value>%origin%/images/dialog.png</value>
...
...
languagetool/JLanguageTool-1.
4
.0.patch
→
languagetool/JLanguageTool-1.
7
.0.patch
Dosyayı görüntüle @
8d1a2b4f
diff -Naur misc/
JLanguageTool-1.4.0//build.properties misc/build/JLanguageTool-1.4.0
/build.properties
--- misc/
JLanguageTool-1.4.0//build.properties 2011-06-26 20:29:43
.000000000 +0200
+++ misc/build/JLanguageTool-1.
4.0/build.properties 2011-08-25 18:22:31.3058708
00 +0200
@@ -
50,10 +50
,10 @@
diff -Naur misc/
build/JLanguageTool-1.7.0/build.properties misc/build/JLanguageTool-1.7.0_patched
/build.properties
--- misc/
build/JLanguageTool-1.7.0/build.properties 2012-06-25 08:22:35
.000000000 +0200
+++ misc/build/JLanguageTool-1.
7.0_patched/build.properties 2012-06-25 09:24:21.2534945
00 +0200
@@ -
67,10 +67
,10 @@
ext.log4j.lib = ${ext.dir}/build/cobertura/log4j-1.2.9.jar
ext.jakarta-oro.lib = ${ext.dir}/build/cobertura/jakarta-oro-2.0.8.jar
...
...
@@ -14,21 +14,23 @@ diff -Naur misc/JLanguageTool-1.4.0//build.properties misc/build/JLanguageTool-1
+ext.ooo.ridl.lib = ${solver.ooo.dir}/ridl.jar
+ext.ooo.jurt.lib = ${solver.ooo.dir}/jurt.jar
converter.name = RuleConverter
build.meta-inf = ${build.dir}/META-INF
final.name = LanguageTool
diff -Naur misc/JLanguageTool-1.4.0//build.xml misc/build/JLanguageTool-1.4.0/build.xml
--- misc/JLanguageTool-1.4.0//build.xml 2011-06-26 20:29:43.000000000 +0200
+++ misc/build/JLanguageTool-1.4.0/build.xml 2011-08-25 18:26:51.816771100 +0200
@@ -24,6 +24,8 @@
<pathelement location="${ext.jakarta-regex.lib}" />
<pathelement location="${ext.segment.lib}" />
diff -Naur misc/build/JLanguageTool-1.7.0/build.xml misc/build/JLanguageTool-1.7.0_patched/build.xml
--- misc/build/JLanguageTool-1.7.0/build.xml 2012-06-25 08:22:35.000000000 +0200
+++ misc/build/JLanguageTool-1.7.0_patched/build.xml 2012-06-25 09:27:39.077442000 +0200
@@ -29,7 +29,9 @@
<pathelement location="${ext.CJFtransform.lib}" />
<pathelement location="${ext.commons-validator.lib}" />
<!-- -->
- <pathelement location="${ext.ooo.juh.lib}" />
+ <pathelement location="${ext.junit.lib}"/>
+ <!-- -->
<pathelement location="${ext.ooo.juh.lib}" />
+
<pathelement location="${ext.ooo.juh.lib}" />
<pathelement location="${ext.ooo.unoil.lib}" />
<pathelement location="${ext.ooo.ridl.lib}" />
@@ -390,11 +392,11 @@
<pathelement location="${ext.ooo.jurt.lib}" />
@@ -442,11 +444,11 @@
<!-- ================================================================== -->
<target name="dist" depends="ooo-internal" description="Builds one ZIP for both OpenOffice.org and stand-alone use">
...
...
@@ -42,25 +44,65 @@ diff -Naur misc/JLanguageTool-1.4.0//build.xml misc/build/JLanguageTool-1.4.0/bu
</target>
<target name="common" depends="clean,init,build,ooo-build">
@@ -502,7 +504,6 @@
<copy file="${resource.dir}/sv/swedish.dict" todir="${dist.dir}/resource/sv" />
<copy file="${resource.dir}/sv/compounds.txt" todir="${dist.dir}/resource/sv" />
- <copy file="${resource.dir}/uk/ukrainian.dict" todir="${dist.dir}/resource/uk" />
<copy file="${resource.dir}/ru/russian.dict" todir="${dist.dir}/resource/ru" />
<copy file="${resource.dir}/ru/russian.info" todir="${dist.dir}/resource/ru" />
@@ -544,7 +545,6 @@
<copy file="${resource.dir}/ca/catalan.info" todir="${dist.dir}/resource/ca" />
<copy file="${resource.dir}/ca/README" todir="${dist.dir}/resource/ca" />
@@ -651,7 +653,6 @@
<copy file="${resource.dir}/ast/asturian.dict" todir="${dist.dir}/resource/ast" />
<copy file="${resource.dir}/ast/asturian.info" todir="${dist.dir}/resource/ast" />
- <copy file="${resource.dir}/xx/dummy.dict" tofile="${dist.dir}/resource/cs/czech.dict" />
<copy todir="${dist.dir}/rules">
<fileset dir="src/rules" excludes="CVS" />
</copy>
diff -Naur misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/gui/Configuration.java misc/build/JLanguageTool-1.4.0/src/java/de/danielnaber/languagetool/gui/Configuration.java
--- misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/gui/Configuration.java 2011-06-26 20:29:43.000000000 +0200
+++ misc/build/JLanguageTool-1.4.0/src/java/de/danielnaber/languagetool/gui/Configuration.java 2011-08-25 18:30:03.856755200 +0200
@@ -678,7 +678,7 @@
<filter filtersFile="ooolocales.properties" />
<copy filtering="true" encoding="${encoding}" todir="${dist.dir}/">
- <fileset dir="openoffice/" includes="description.xml,*.xcu,Options.xdl,META-INF/**" />
+ <fileset dir="openoffice/" includes="components.rdb,description.xml,*.xcu,Options.xdl,META-INF/**" />
</copy>
<copy todir="${dist.dir}/">
<fileset dir="openoffice/" includes="images/**,help/**" />
diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/components.rdb misc/build/JLanguageTool-1.7.0_patched/openoffice/components.rdb
--- misc/build/JLanguageTool-1.7.0/openoffice/components.rdb 1970-01-01 01:00:00.000000000 +0100
+++ misc/build/JLanguageTool-1.7.0_patched/openoffice/components.rdb 2012-06-25 10:26:23.183633100 +0200
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<components xmlns="http://openoffice.org/2010/uno-components">
+ <component loader="com.sun.star.loader.Java2" uri="./LanguageTool.uno.jar">
+ <implementation name="org.languagetool.openoffice.Main">
+ <service name="com.sun.star.linguistic2.Proofreader"/>
+ <service name="org.languagetool.openoffice.Main"/>
+ </implementation>
+ </component>
+</components>
diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/META-INF/manifest.xml misc/build/JLanguageTool-1.7.0_patched/openoffice/META-INF/manifest.xml
--- misc/build/JLanguageTool-1.7.0/openoffice/META-INF/manifest.xml 2012-06-25 08:22:34.000000000 +0200
+++ misc/build/JLanguageTool-1.7.0_patched/openoffice/META-INF/manifest.xml 2012-06-25 09:39:56.751738000 +0200
@@ -2,8 +2,8 @@
<manifest:manifest>
<manifest:file-entry manifest:full-path="Addons.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data" />
- <manifest:file-entry manifest:full-path="LanguageTool.uno.jar"
- manifest:media-type="application/vnd.sun.star.uno-component;type=Java" />
+ <manifest:file-entry manifest:full-path="components.rdb"
+ manifest:media-type="application/vnd.sun.star.uno-components" />
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="Linguistic.xcu" />
diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/description.xml misc/build/JLanguageTool-1.7.0_patched/openoffice/description.xml
--- misc/build/JLanguageTool-1.7.0/openoffice/description.xml 2012-06-25 08:22:35.000000000 +0200
+++ misc/build/JLanguageTool-1.7.0_patched/openoffice/description.xml 2012-06-25 10:29:48.520591800 +0200
@@ -21,7 +21,7 @@
<name lang="zh">LanguageTool. 开源的语言检查工具</name>
<name lang="br">LanguageTool. Reizher reizhskrivadurel frank.</name>
</display-name>
- <version value="@version@" />
+ <version value="1.7.1" />
<release-notes>
<src xlink:href="CHANGES.txt" lang="en" />
</release-notes>
diff -Naur misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/gui/Configuration.java misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/gui/Configuration.java
--- misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/gui/Configuration.java 2012-06-25 08:21:31.000000000 +0200
+++ misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/gui/Configuration.java 2012-06-25 09:31:40.737466400 +0200
@@ -23,6 +23,7 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
...
...
@@ -68,11 +110,12 @@ diff -Naur misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/gui/Co
+import java.lang.ClassLoader;
import java.util.*;
import
de.danielnaber
.languagetool.Language;
@@ -1
32,8 +133,19
@@
import
org
.languagetool.Language;
@@ -1
42,7 +143,18
@@
final String motherTongueStr = (String) props.get(MOTHER_TONGUE_CONFIG_KEY);
if (motherTongueStr != null) {
- motherTongue = Language.getLanguageForShortName(motherTongueStr);
+ // FIXME: hack to disable the functionality for JRE 1.5
+ // javax.xml.bind.JAXBException is part of JRE 1.6
+ boolean isJRE15 = false;
...
...
@@ -83,15 +126,14 @@ diff -Naur misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/gui/Co
+ isJRE15 = true;
+ }
+ if (!isJRE15) {
motherTongue = Language.getLanguageForShortName(motherTongueStr);
+ motherTongue = Language.getLanguageForShortName(motherTongueStr);
+ }
}
+ }
final String runServerString = (String) props.get(SERVER_RUN_CONFIG_KEY);
if (runServerString != null) {
runServer = runServerString.equals("true");
diff -Naur misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/openoffice/Main.java misc/build/JLanguageTool-1.4.0/src/java/de/danielnaber/languagetool/openoffice/Main.java
--- misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/openoffice/Main.java 2011-06-26 20:29:43.000000000 +0200
+++ misc/build/JLanguageTool-1.4.0/src/java/de/danielnaber/languagetool/openoffice/Main.java 2011-08-25 18:32:21.593633300 +0200
final String autoDetectStr = (String) props.get(AUTO_DETECT_CONFIG_KEY);
diff -Naur misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/Main.java misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/openoffice/Main.java
--- misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/Main.java 2012-06-25 08:21:28.000000000 +0200
+++ misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/openoffice/Main.java 2012-06-25 09:36:03.778528700 +0200
@@ -24,6 +24,7 @@
* @author Marcin Miłkowski
*/
...
...
@@ -100,17 +142,17 @@ diff -Naur misc/JLanguageTool-1.4.0//src/java/de/danielnaber/languagetool/openof
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
@@ -4
54,6 +45
5,14 @@
@@ -4
94,6 +49
5,14 @@
*/
@Override
public final Locale[] getLocales() {
+ // FIXME: hack to disable the functionality for JRE 1.5
+ // javax.xml.bind.JAXBException is part of JRE 1.6
+ try {
+
ClassLoader cl = ClassLoader.getSystemClassLoader();
+
cl.loadClass("javax.xml.bind.JAXBException");
+
ClassLoader cl = ClassLoader.getSystemClassLoader();
+
cl.loadClass("javax.xml.bind.JAXBException");
+ } catch (ClassNotFoundException e) {
+
return new Locale[0];
+
return new Locale[0];
+ }
try {
int dims = 0;
...
...
languagetool/makefile.mk
Dosyayı görüntüle @
8d1a2b4f
...
...
@@ -38,10 +38,10 @@ TARGET=languagetool
# --- Files --------------------------------------------------------
TARFILE_NAME
=
JLanguageTool-1.
4
.0
TARFILE_MD5
=
b
99fb620b1324b4ce79ee6998b507146
TARFILE_ROOTDIR
=
JLanguageTool-1.
4
.0
PATCH_FILES
=
JLanguageTool-1.
4
.0.patch JLanguageTool-1.4.0-no-hc.patch
TARFILE_NAME
=
JLanguageTool-1.
7
.0
TARFILE_MD5
=
b
63e6340a02ff1cacfeadb2c42286161
TARFILE_ROOTDIR
=
JLanguageTool-1.
7
.0
PATCH_FILES
=
JLanguageTool-1.
7
.0.patch JLanguageTool-1.4.0-no-hc.patch
REMOVE_FILES
=
openoffice/images/dialogh.png
.IF
"$(JAVACISGCJ)"
==
"yes"
...
...
ooo.lst.in
Dosyayı görüntüle @
8d1a2b4f
...
...
@@ -76,7 +76,7 @@ a2c10c04f396a9ce72894beb18b4e1f9-jpeg-8c.tar.gz
2ab442d169156f34c379c968f3f482dd-zlib-1.2.7.tar.bz2
7c53f83e0327343f4060c0eb83842daf-icu4c-49_1_1-src.tgz
451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
b
99fb620b1324b4ce79ee6998b507146-JLanguageTool-1.4
.0.tar.bz2
b
63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7
.0.tar.bz2
0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz
71474203939fafbe271e1263e61d083e-nss-3.12.8-with-nspr-4.8.6.tar.gz
9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment