Sponsored Content
Top Forums Shell Programming and Scripting Creating a dictionary with domain name adjuncted Post 302802577 by gimley on Saturday 4th of May 2013 12:03:01 AM
Old 05-04-2013
Creating a dictionary with domain name adjuncted

Hello,
I have created a dictionary which has the following structure:
Code:
DOMAINWORD=(equivalent in English)gloss(es) in Hindi each separated by a comma(equivalent in English)gloss(es) in Hindi each separated by a comma or a semi-colon

An example will make this clear
Code:
blatant=(noisy)ऊधमी,मुखर;(palpable)खुला,साफ़,स्पष्ट;(gaudy)भड़कीला;(flagrant)घोर 
blazonry=भड़कीला प्रदर्शन
fancy{adj.}=विलक्षण,विचित्र,सनकी;(extravagant)मनमाना,अत्याधिक;(ornamental)रंग-बिरंगा,फैंसी,भड़कीला;(costly)महँगा;(special)विशिष्ट 
fine{adj.}=(excellent)उत्तम,उत्कृष्ट,बढ़िया,अच्छा;(pure)विशुध्द,विमल,खरा,परिष्कृत;(weather)सुहावना;(not coarse)महीन,बारीक,सूक्ष्म;(thin)पतला,(delicate)कोमल,सुकुमार,मृदु; (sublte)सूक्ष्म;(sharp)तीक्ष्ण,नुकीला,(handsome)मनोहर,सुन्दर,सुहावना,चारु;(showy)भड़कीला,भड़कदार;(ornate)अलंकृत 
flamboyant{adj.}=भड़कीला,भड़कदार; (style)अलंकृत 
flaming=(burning)प्रज्वलित;(glowing)प्रदीप्त;(fig.,ardent)उत्कट,भावपूर्ण,जोशीला (of person);(showy)भड़कीला, (starting)विस्मयकारी 
flashy=चमकीला,(showy)भड़कीला 
flash{adj.}=भड़कीला,दिखावटी,नक़ली 
florid=(rosy)गुलाबी,लाल,रक्ताभ;(gaudy)भड़कीला;(omate)अलंकृत,आलंकारिक 
fussy=बतंगड़िया;(of dress)ठाठदार,भड़कीला 
gallant{adj.}=बहादुर,वीर,(stately)प्रतापी,भव्य,(showy)भड़कीला,(amorous)श्रृंगारिक, (attentive to ladies)नारीसेवापरायण,रमणीरंजक,नारीभक्त
garish=भड़कीला;(of colours)चटकीला 
gaudy=भड़कीला 
gay=(merry) प्रसन्नचित,प्रफुल्ल, (light hearted) ज़िन्दादिल,विनोदी, (wanton) लम्पट,विषयी,विलासी, (brilliant)भड़कीला,चमकीला 
glare{v.}=चमचमना,(be too showy)भड़कीला या चटकीला होना,(stare)तरेरना 
glaring=(shining)चमकीला,चटकीला, (showy)भड़कीला, (fierce)क्रोधपूर्ण,सुस्पष्ट 
glary=(shining) चमकीला,चटकीला,(showy)भड़कीला,(fierce)क्रोधपूर्ण,सुस्पष्ट 
gorgeous=शानदार,भड़कीला,(of style)अलंकृत,आलंकारिक 
grand=(chief)प्रधान,उच्च,मुख्य,(impose)भव्य,विशाल,शानदार,प्रतापी,वैभवशाली, (great) महान्,महा-,(important)महत्वपूर्ण;(haught)गर्वित,गर्वयुक्त,अभिमानी,(showy)भड़कीला,(llustrious) प्रसिद्ध,प्रतिष्ठीत 
meretricious=वेश्या का,वेश्या-सुलभ;(showy)नकली,भड़कीला,भडकदार 
ostentatious=(of a person)आडम्बरप्रिय,आडम्बरि;दिखावटी,भड़कीला,आडम्बरपूर्ण,आडम्बरी 
rich=धनी,धनवान,धनाढय,मालदार,दौलतमन्द;(abundant)प्रचुर,विपुल;(abounding in)से भरपूर, समृध्द;(valuable)मूल्यवान्;(fertile)उपजाऊ,उर्वर;(splendid)भड़कीला,शानदार;(of food)बढ़िया,स्वादिष्ठ,मसालेदार (spicy);(of colours)चटकीला;(of voice)गंभीर;(amusing)मनोरंजक;(of mixture)गाढ़ा 
showy=(ostentatious)आडम्बरी;(gaudy)भड़कीला,दिखावटी,दिखाऊ;(striking)असाधारण,विशिष्ट,दर्शनीय 
shy{adj.}=(bashful)संकोची,शर्मीला,झेंपू,लज्जालु,(easily startled)भड़कैल,भड़कीला,(wary) चौकन्ना,सतर्क,चौकस,सचेत,(elusive)दुष्प्राप्य,दुर्बोध 
spectacular=(impressive)प्रभावशाली,भव्य,शानदार;(amazing)अपूर्व,चमम्कारीक,आश्र्चर्य-जनक; (showy)आडम्बरपूर्ण,भड़कीला,दिखाऊ,आडम्बरप्रिय,आडम्बरी (of person) 
splendid=(magnificent)भव्य,शानदार,वैभवशाली;(brilliant,shining)चमकीला,भड़कीला (grand,glorious)गौरवपूर्ण,प्रतापमय,प्रतापी,महान्,ख्यातिकर;(excellent)अत्युत्तम,बढ़िया,उत्कृष्ट,अच्छा 
staring=भड़कीला,भड़कदार 
tatty{adj.}=(ragged)फटा-पुराना;(fussily ornate)भड़कीला;(of person)फटीचर 
tawdry{adj.}=भड़कीला,दिखाऊ;भद्दा,बेढंगा 
tinsel{adj.}=भड़कीला,नुमाइशी,लिफ़ाफ़िया 
tinsel{v.}=पन्नी लगाना;भड़कीला बना देना 
trumpery{adj.}=भड़कीला,दिखाऊ,रद्दी,निस्सार

What I need is a script which will do the following:
Code:
domain=(english equivalent) gloss(es) in Hindi

An example will make it clear
INPUT
Code:
blatant=(noisy)ऊधमी,मुखर;(paIpable)खुला,साफ़,स्पष्ट;(gaudy)भड़कीला;(flagrant)घोर 
blazonry=भड़कीला प्रदर्शन

EXPECTED OUTPUT OF THE FIRST TWO ENTRIES. In case 2 there is no bracket so the domain word stands by itself. In case a part of speech is appended to the domain indicated by curly brackets, it should be treated as part of the domain.
Code:
blatant=(noisy)ऊधमी,मुखर
blatant=(palpable)खुला,साफ़,स्पष्ट
blatant=(gaudy)भड़कीला
blatant=(flagrant)घोर

At present I am using a macro which is very slow and takes ages, since the file is huge (62,000+entries).
I work under Windows Vista environment, so an awk or perl script would help.
Many thanks for the generous help of the members
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dictionary File

Could someone please tell me where the dictionary file for Spell is stored. And is it in a text format so I can read it in a windows text editor. Thanks (1 Reply)
Discussion started by: Rukshan
1 Replies

2. UNIX for Dummies Questions & Answers

nt to unix dictionary

Has anyone ever encountered a good publication or site that is basically a NT(or DOS) to UNIX Dictionary / Translator (i.e. service = daemon or ren = mv, etc) - I've found lots of websites that list like 20 or so command equivalents, but that's about it- what about differences in system folders,... (3 Replies)
Discussion started by: gsumers
3 Replies

3. UNIX for Dummies Questions & Answers

unix dictionary location

ne1 know where unixs built in dictionary is??? is it in this place /usr/dict/words????? (1 Reply)
Discussion started by: sinner
1 Replies

4. UNIX for Advanced & Expert Users

dictionary words in vim

how can i get the dictionary words in vim using keyboard keys? and how can i get the current directory filename? (1 Reply)
Discussion started by: lakshmananindia
1 Replies

5. Shell Programming and Scripting

how to give dictionary effect ?

Hello, In google: if we type the text like :- It gives us a question saying :- I want to know how to write a shell script to give this Dictionary effect. example:If we give "lst" then it corrects us saying "list". Can you please help me with a sample code! friends..... (3 Replies)
Discussion started by: nsharath
3 Replies

6. UNIX for Dummies Questions & Answers

Unix dictionary.

Hey, I am looking for an inbuilt unix dictionary.I tried to look at the path /usr/dict/word and I do not find anything any dict directory in the /usr folder. Can anyone please tell me how to find out this dictionary? Thanks Lee. (1 Reply)
Discussion started by: leepan2008
1 Replies

7. Windows & DOS: Issues & Discussions

How to: Linux BOX in Windows Domain (w/out joining the domain)

Dear Expert, i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant. ... (2 Replies)
Discussion started by: regmaster
2 Replies

8. Homework & Coursework Questions

How to create a dictionary using cygwin

1. The problem statement, all variables and given/known data: Create a dictionary using cygwin. Display the following menu at the start of execution 1-add a word in the dictionary # specify the meaning 2-search a word # if word exists, show the meaning of the word 2-delete a word... (2 Replies)
Discussion started by: kpopfreakghecky
2 Replies

9. Programming

Python Web Page Scraping Urls Creating A Dictionary

I have thrown in the towel and cant figure out how to do this. I have a directory of html files that contain urls that I need to scrape (loop through) and add into a dictionary. An example of the output I would like is: bigbadwolf.htlm: https://www.blah.com, http://www.blahblah.com,... (5 Replies)
Discussion started by: metallica1973
5 Replies

10. Shell Programming and Scripting

Creating verbal structures from a dictionary and a template

My main aim here is to create a database of verbs in a language to Hindi. The output if it works well will be put up on a University site for researchers to use for Machine Translation. This because one of the main weaknesses of MT is in the area of verbs. Sorry for the long post but the problem... (4 Replies)
Discussion started by: gimley
4 Replies
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy