# -*- mode: conf; -*-
#
# Copyright 2002 - 2021 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:ro
LANGNAME:Romanian

# deal with DOS files
LANGFILTER: tr -d '\r'
LANGFILTER: | sed -e 's/[[:lower:]]*/\U&/'
LANGFILTER: | tr 'ĂÂÎȘȚ' 'AAIST'
LANGFILTER: | grep -x '[A-JL-PR-VXZ]\{2,15\}'
LANGFILTER: | sort -u

# We can trust sort (above) to do the right thing since there's no
# high ascii.  dict2dawg.pl is much faster if I can trust that its
# input is in sorted order.
D2DARGS: -nosort -term 10

LANGINFO: <p>Romanian dictionaries can contain all of the 26 English
LANGINFO: letters EXCEPT K, Q, W and Y.
LANGINFO: Any word in your list containing anything else
LANGINFO: will be excluded from the dictionary.</p>

# High bit means "official".  Next 7 bits are an enum where
# Romanian==0x15.  Low byte is padding
XLOC_HEADER:0x9500

# Number Value 	 	Letter
<BEGIN_TILES>
{"_"}	0 	2
'A|a' 	1 	11
'B|b' 	9 	2
'C|c' 	1 	5
'D|d' 	2 	4
'E|e' 	1 	9
'F|f' 	8 	2
'G|g' 	9 	2
'H|h' 	10 	1
'I|i' 	1 	10
'J|j' 	10 	1
'L|l' 	1 	4
'M|m' 	4 	3
'N|n' 	1 	6
'O|o' 	1 	5
'P|p' 	2 	4
'R|r' 	1 	7
'S|s' 	1 	5
'T|t' 	1 	7
'U|u' 	1 	6
'V|v' 	8 	2
'X|x' 	10 	1
'Z|z' 	10 	1
<END_TILES>

# should ignore all after the <END> above
