diff options
author | gabor <gabor@FreeBSD.org> | 2007-10-07 01:18:31 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2007-10-07 01:18:31 +0800 |
commit | 87b46bf69641c6efd5163644121920a0d991dced (patch) | |
tree | ef9fe1564a513eef0c9fb5cf87ebc313804f9a4e /hungarian | |
parent | 05856932f234f826a799e9ef95c248a406007237 (diff) | |
download | freebsd-ports-gnome-87b46bf69641c6efd5163644121920a0d991dced.tar.gz freebsd-ports-gnome-87b46bf69641c6efd5163644121920a0d991dced.tar.zst freebsd-ports-gnome-87b46bf69641c6efd5163644121920a0d991dced.zip |
- Fix UTF-8 bug
- Fix bash specific solution in the code
PR: ports/116790
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer)
Diffstat (limited to 'hungarian')
-rw-r--r-- | hungarian/ispell/Makefile | 1 | ||||
-rw-r--r-- | hungarian/ispell/files/patch-bin_felvesz | 11 | ||||
-rw-r--r-- | hungarian/ispell/files/patch-bin_fonevek | 9 |
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." |