summaryrefslogtreecommitdiff
path: root/hungarian
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2007-10-06 17:18:31 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2007-10-06 17:18:31 +0000
commit625746c35d69072cb33d666ee592603724b73e04 (patch)
treeef84b0db5096b3be60ef8f993b72eebcd46263bf /hungarian
parentUpdate to 1.0 (diff)
- Fix UTF-8 bug
- Fix bash specific solution in the code PR: ports/116790 Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer)
Notes
Notes: svn path=/head/; revision=201007
Diffstat (limited to 'hungarian')
-rw-r--r--hungarian/ispell/Makefile1
-rw-r--r--hungarian/ispell/files/patch-bin_felvesz11
-rw-r--r--hungarian/ispell/files/patch-bin_fonevek9
3 files changed, 21 insertions, 0 deletions
diff --git a/hungarian/ispell/Makefile b/hungarian/ispell/Makefile
index 0d8c7aeededc..adeea20e11aa 100644
--- a/hungarian/ispell/Makefile
+++ b/hungarian/ispell/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ispell
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= hungarian textproc
#MASTER_SITES= http://www.szofi.hu/gnu/magyarispell/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
diff --git a/hungarian/ispell/files/patch-bin_felvesz b/hungarian/ispell/files/patch-bin_felvesz
new file mode 100644
index 000000000000..cca020838071
--- /dev/null
+++ b/hungarian/ispell/files/patch-bin_felvesz
@@ -0,0 +1,11 @@
+
+$FreeBSD$
+
+--- bin/felvesz.orig
++++ bin/felvesz
+@@ -8,4 +8,4 @@
+ Megjegyzés: a magyarispell*/ könyvtárból indítva működik.
+ Kilépés: Ctrl-c"
+ echo "Az új szó?"
+-function latin() { echo "$1" | iconv -f utf-8 -t latin2; }; function search() { grep -l "^$1$" `grep ^szotar szotar.konf | awk '{print $0"/*"}'`; }; function put() { echo "Kérem a következő mintát a $1 szóhoz, vagy f (felvétel), u (felvétel új tővel):"; LOC=""; while read j; do test "$j" = "f" -o "$j" = "u" && break || LOC=$(search `latin $j`); echo $LOC; done; echo ""; if test "$j" = "f"; then w=`latin $1`; for l in $LOC; do echo "$w" >>$l; done; else echo "új tő?"; read k; echo "új tő: $k"; w=`latin $k`; for l in $LOC; do echo "$w" >>$l; done; fi; echo -e "Felvéve ide:\n$LOC"; }; while read i; do case $i in "ö") echo "`latin $prev`" >>$(dirname $(echo $ploc | head -1 | awk '{print $1}'))/fonev_osszetett.1; echo "összetettként felvéve: $prev";; esac; ploc=$(search `latin $i`); echo $ploc; test -z "$ploc" && put $i; echo "Az új szó?"; prev=$i; done
++latin() { echo "$1" | iconv -f utf-8 -t latin2; }; search() { grep -l "^$1$" `grep ^szotar szotar.konf | awk '{print $0"/*"}'`; }; put() { echo "Kérem a következő mintát a $1 szóhoz, vagy f (felvétel), u (felvétel új tővel):"; LOC=""; while read j; do test "$j" = "f" -o "$j" = "u" && break || LOC=$(search `latin $j`); echo $LOC; done; echo ""; if test "$j" = "f"; then w=`latin $1`; for l in $LOC; do echo "$w" >>$l; done; else echo "új tő?"; read k; echo "új tő: $k"; w=`latin $k`; for l in $LOC; do echo "$w" >>$l; done; fi; echo -e "Felvéve ide:\n$LOC"; }; while read i; do case $i in "ö") echo "`latin $prev`" >>$(dirname $(echo $ploc | head -1 | awk '{print $1}'))/fonev_osszetett.1; echo "összetettként felvéve: $prev";; esac; ploc=$(search `latin $i`); echo $ploc; test -z "$ploc" && put $i; echo "Az új szó?"; prev=$i; done
diff --git a/hungarian/ispell/files/patch-bin_fonevek b/hungarian/ispell/files/patch-bin_fonevek
index d30789777daf..0eae86760d8e 100644
--- a/hungarian/ispell/files/patch-bin_fonevek
+++ b/hungarian/ispell/files/patch-bin_fonevek
@@ -18,3 +18,12 @@ $FreeBSD$
awk '/^[^ ]*[[]/{
print $1 >>"mezok.txt"
i = index($1, "[")
+@@ -186,7 +186,7 @@
+
+ # kiejtés javítása
+ cat mezok.txt | sed 's/sszsz/ssz/;s/szsz/ssz/;s/sss/ss/;s/[[,]/ /;s/]//' >mezok2.txt
+-cat mezok2.txt | iconv -f latin2 -t utf8 | sed -f $BINDIR/l1_u8.sed >mezok_utf.txt
++cat mezok2.txt | iconv -f latin2 -t utf-8 | sed -f $BINDIR/l1_u8.sed >mezok_utf.txt
+ echo_n .
+
+ echo " Rendben."