11-22-2011
What locale is your SunOS system using?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
2. Shell Programming and Scripting
Hi,
I have tonnes of .txt files that are written in French. I need to replace the French special characters, however, with English equivalents (e.g. é -> e and ç -> c).
I have tried this
---
#!/bin/bash
# Convert French characters to normal characters
# Treat each of the files
exec... (4 Replies)
Discussion started by: BlueberryPickle
4 Replies
3. Programming
Hello,
I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here is the code as I have it:
char* getext(char *file)
{
char *extension;
int i, j;... (5 Replies)
Discussion started by: pallak7
5 Replies
4. HP-UX
I am having a problem with two OSes. One is running windows 2003 and sending XML to a second system running Unix (HP-UX 11i v1). Windows sends XML to the UNIX system fine but then the UNIX system reads the buffer file and turns the french characters into the following:
é Ú
É ╔
Î ... (3 Replies)
Discussion started by: Redfin
3 Replies
5. Solaris
Hi,
I've noticed that the permissions output from "ls -l" under SunOS differs from Linux in that after the "rwxrwxrwx" field, there is an additional "+" character that may or may not be there. What is the significance of this character?
Thanks,
Suan (6 Replies)
Discussion started by: sayeo
6 Replies
6. Programming
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Discussion started by: GSO
8 Replies
7. UNIX for Dummies Questions & Answers
This question might be silly but its confusing me a bit:
What is the difference between handle to the thread HANDLE and thread identifier pthread_t?
---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ----------
Sorry I saw details and HANDLE is in windows and... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
8. Shell Programming and Scripting
Hi,
I wrote a script to convert a given word from English to French.
But I am not able to figure out what I am missing here.
I am not able to get the translated word
Below is my script:
French=/root/dict/entofr.txt
for i in $*
do
word="echo $word $i"
done
while:
do
cat <<... (1 Reply)
Discussion started by: pinky7630
1 Replies
9. UNIX for Dummies Questions & Answers
Hello again,
How can I send emails via postfix with special characters like "à" via postfix.
When I'm paste-ing the special character inside a editor (nano) it shows like this --> � ... any tips? (1 Reply)
Discussion started by: galford
1 Replies
LEARN ABOUT DEBIAN
lingua::stem::fr
Lingua::Stem::Fr(3pm) User Contributed Perl Documentation Lingua::Stem::Fr(3pm)
NAME
Lingua::Stem::Fr - Perl French Stemming
SYNOPSIS
use Lingua::Stem::Fr;
my $stems = Lingua::Stem::Fr::stem({ -words => $word_list_reference,
-locale => 'fr',
-exceptions => $exceptions_hash,
});
my $stem = Lingua::Stem::Fr::stem_word( $word );
DESCRIPTION
This module use the a modified version of the Porter Stemming Algorithm to return a stemmed words.
The algorithm is implemented as described in:
http://snowball.tartarus.org/french/stemmer.html
with some improvement.
The code is carefully crafted to work in conjunction with the Lingua::Stem module by Benjamin Franz. This french version is based too, on
the work of Aldo Calpini (Italian Version)
METHODS
o stem({ -words => @words, -locale => 'fr', -exceptions => \%exceptions }); Stems a list of passed words. Returns an anonymous list
reference to the stemmed words.
Example:
my $stemmed_words = Lingua::Stem::Fr::stem({ -words => @words,
-locale => 'fr',
-exceptions => \%exceptions,
});
o stem_word( $word );
Stems a single word and returns the stem directly.
Example:
my $stem = Lingua::Stem::Fr::stem_word( $word );
o stem_caching({ -level => 0|1|2 });
Sets the level of stem caching.
'0' means 'no caching'. This is the default level.
'1' means 'cache per run'. This caches stemming results during a single
call to 'stem'.
'2' means 'cache indefinitely'. This caches stemming results until
either the process exits or the 'clear_stem_cache' method is called.
o clear_stem_cache;
Clears the cache of stemmed words
HISTORY
0.01 Original version; created by h2xs 1.23 with options
-ACX
-n
Lingua::Stem::Fr
0.02 Minor change in documentation and disable of limitation to perl 5.8.3+
SEE ALSO
You can see the French stemming algorithm from Mr Porter here :
http://snowball.tartarus.org/french/stemmer.html
Another French stemming tool in Perl (French page) :
http://www.univ-nancy2.fr/pers/namer/Telecharger_Flemm.html
AUTHOR
Sebastien Darribere-Pleyt, <sebastien.darribere@lefute.com>
COPYRIGHT AND LICENSE
Copyright (C) 2003 by Aldo Calpini <dada@perl.it>
Copyright (C) 2004 by Sebastien Darribere-Pleyt <sebastien.darribere@lefute.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or,
at your option, any later version of Perl 5 you may have available.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 563:
Expected '=item *'
Around line 571:
Expected '=item *'
Around line 583:
Expected '=item *'
perl v5.10.1 2007-10-23 Lingua::Stem::Fr(3pm)