mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
add Finnish support
This commit is contained in:
parent
b98d1059f7
commit
cc7298c6a5
4 changed files with 98 additions and 0 deletions
|
@ -261,6 +261,7 @@
|
|||
<item>19</item><item>@string/lang_name_slovak</item><item>sk</item>
|
||||
<item>20</item><item>@string/lang_name_hungarian</item><item>hu</item>
|
||||
<item>21</item><item>@string/lang_name_romanian</item><item>ro</item>
|
||||
<item>25</item><item>@string/lang_name_finnish</item><item>fi</item>
|
||||
|
||||
<item>127</item><item>Hex</item><item>--</item>
|
||||
</string-array>
|
||||
|
|
|
@ -2098,6 +2098,7 @@
|
|||
<string name="lang_name_slovak">Slovak</string>
|
||||
<string name="lang_name_hungarian">Hungarian</string>
|
||||
<string name="lang_name_romanian">Romanian</string>
|
||||
<string name="lang_name_finnish">Finnish</string>
|
||||
<!-- for loc item edit menu -->
|
||||
<!-- Button to clear wordlist filter config (but not re-apply the
|
||||
filter). And other uses...-->
|
||||
|
|
35
xwords4/dawg/Finnish/Makefile
Normal file
35
xwords4/dawg/Finnish/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
# -*-mode: Makefile; compile-command: "make TARGET_TYPE=WINCE"; -*-
|
||||
# Copyright 2002 - 2022 by Eric House (xwords@eehouse.org). All
|
||||
# rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
XWLANG=Finish
|
||||
LANGCODE=fi_FI
|
||||
TARGET_TYPE ?= WINCE
|
||||
ENC = UTF-8
|
||||
DICTNOTE = "Built from https://kaino.kotus.fi/sanat/nykysuomi"
|
||||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
$(XWLANG)Main.dict.gz: $(SOURCEDICT) $(MAKEFILE)
|
||||
(cd $(XWDICTPATH)/Finnish && xmlstarlet sel -t -m "//s" -v . -n kotus-sanalista_v1.xml) \
|
||||
| sed 's/[[:lower:]]*/\U&/' \
|
||||
| grep '^[AÄBCDEFGHIJKLMNOÖPRSTUVWY]*$$' \
|
||||
| sort -u \
|
||||
| gzip - > $@
|
||||
|
||||
clean: clean_common
|
||||
rm -rf *.saved $(XWLANG)Main.dict.gz
|
61
xwords4/dawg/Finnish/info.txt
Normal file
61
xwords4/dawg/Finnish/info.txt
Normal file
|
@ -0,0 +1,61 @@
|
|||
# -*- mode: conf; coding: utf-8; -*-
|
||||
# Copyright 2002-2009 by Eric House (xwords@eehouse.org). All rights
|
||||
# reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
LANGCODE:fi
|
||||
CHARSET: utf-8
|
||||
|
||||
LANGFILTER: tr -d '\r'
|
||||
LANGFILTER: | sed -e 's/[[:lower:]]*/\U&/'
|
||||
LANGFILTER: | grep -x '[AÄBCDEFGHIJKLMNOÖPRSTUVWY]\{2,15\}'
|
||||
|
||||
LANGINFO: <p>Finnish. Uploaded wordlist must be in utf-8 format.
|
||||
LANGINFO: </p>
|
||||
|
||||
D2DARGS: -r -term 0 -enc UTF-8
|
||||
|
||||
XLOC_HEADER:0x9900
|
||||
|
||||
# From wikipedia
|
||||
<BEGIN_TILES>
|
||||
2 0 {"_"}
|
||||
10 1 'A|a'
|
||||
5 2 'Ä|ä'
|
||||
1 8 'B|b'
|
||||
1 10 'C|c'
|
||||
1 7 'D|d'
|
||||
8 1 'E|e'
|
||||
1 8 'F|f'
|
||||
1 8 'G|g'
|
||||
2 4 'H|h'
|
||||
10 1 'I|i'
|
||||
2 4 'J|j'
|
||||
5 2 'K|k'
|
||||
5 2 'L|l'
|
||||
3 3 'M|m'
|
||||
9 1 'N|n'
|
||||
5 2 'O|o'
|
||||
1 7 'Ö|ö'
|
||||
2 4 'P|p'
|
||||
2 4 'R|r'
|
||||
7 1 'S|s'
|
||||
9 1 'T|t'
|
||||
4 3 'U|u'
|
||||
2 4 'V|v'
|
||||
1 8 'W|w'
|
||||
2 4 'Y|y'
|
||||
<END_TILES>
|
Loading…
Reference in a new issue