LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2015, 05:22 AM   #1
sarmis
LQ Newbie
 
Registered: Nov 2008
Location: Brașov. Romānia
Distribution: Slackware 14.2
Posts: 8

Rep: Reputation: 1
scribble-scrabble localization


Hello friends,

I've installed a cli scrabble game, called scribble - you can find it in slackbuilds.org. It's a simple interface, but that's enough for playing this wonderful game on console. I would like to play it for other language than English. I want to play it in Romanian as a matter of fact. So, does anyone know how to prepare this tiny soft for this schema? If I changed the English dictionary from /usr/share/dict/scribble-english with a Romanian dictionary in a text file, taken from another software called Scrabble3D would be enough?
By the way: for those that are wondering how to install Scrabble3D in slackware 14, I can tell that's simple: just download rpm package from their site and transform it into txz package with rpm2txz cli utility. rpm2txz can be built from slackbuilds.org, too. After the conversion to txz, just do installpkg before the name of the txz Scrabble3D package.

So, if you know if that's possible to configure scribble for other languages than English lang, just be kind to teach us.
 
Old 06-21-2015, 12:09 PM   #2
rhubarbdog
Member
 
Registered: Apr 2015
Location: Yorkshire, England
Distribution: Linux Mint
Posts: 145

Rep: Reputation: Disabled
scribble-scrabble localization

does it have its own dictionary?
it may use the central word repository /usr/share/dict/words. it may be a link to /etc back to a file named British-english say.
Test if scribble uses words by creating a small word repository it's just a normal text file one word per line.
 
Old 06-21-2015, 12:37 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I don't think it's so straightforward: if you look at the executable of the game, it's a perl script with an hardcoded $Lang variable and many other things english-specific (not to mention all messages that are in english).
as an example, see lines 109-111
Code:
@WordPrefixes   = ("","un","mis","p?re");
@WordSuffixes1  = ("","e[drn]","ment","ness","ish","ive","ing","ly","[ai]ble","ably");
@WordSuffixes2  = ("","s","es");
I think it will need a lot of work to be used with a localization.

Last edited by ponce; 06-21-2015 at 01:18 PM.
 
1 members found this post helpful.
Old 06-21-2015, 02:12 PM   #4
sarmis
LQ Newbie
 
Registered: Nov 2008
Location: Brașov. Romānia
Distribution: Slackware 14.2
Posts: 8

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ponce View Post
I don't think it's so straightforward: if you look at the executable of the game, it's a perl script with an hardcoded $Lang variable and many other things english-specific (not to mention all messages that are in english).
as an example, see lines 109-111
Code:
@WordPrefixes   = ("","un","mis","p?re");
@WordSuffixes1  = ("","e[drn]","ment","ness","ish","ive","ing","ly","[ai]ble","ably");
@WordSuffixes2  = ("","s","es");
I think it will need a lot of work to be used with a localization.
I thought so, too, because I saw the script you mentioned. I don't know how to pearl, so it's a bit harsh for me to solve it. Ok, no problem! I can use it just for English lang, cause I do need better skills here .

I saw the dictionary file under /usr/share/dict/scribble-english and I could realize that it's not just a simple text file with the containing word for the game. There are many numbers too, so I don't understand it very well.

As I've already said, when I'm under console and feel like gamin', I'll do it in English. Otherwise, I'll go in X with Scrabble3D.

Thanks my friends for your words!

Have a nice evening and life there!

Last edited by sarmis; 06-21-2015 at 02:13 PM.
 
  


Reply

Tags
game, games



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scrabble iamthatiam Linux - Newbie 1 10-07-2014 09:33 AM
GTK+ scribble graphic manipulation MercyMe Linux - Desktop 0 08-22-2012 06:59 PM
Scrabble guyman Linux - Newbie 3 04-13-2009 05:35 AM
Scrabble! dive Linux - Games 1 11-18-2008 12:53 PM
Scrabble game HwzrHlslndr Linux - Software 1 01-04-2003 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration