GNU Emacs में हिन्दी लिखें

Note: This article is written using GNU Emacs.
नोट: यह लेख GNU Emacs में लिखा गया है।
 
अब आप हिन्दी लिखने के लिए GNU Emacs का प्रयोग कर सकते हैं । गद्य सम्पादन के लिए Emacs एक बेहतरीन साधन है ।

हिन्दी के लिए देवनागरी फॉन्ट स्थापित करे

आप Noto Sans Devanagari इस URL से प्राप्त कर सकते है। फिर root बनकर ये commands चलाए :
# mkdir -p /usr/share/fonts/hindi
# cd /usr/share/fonts/hindi
# unzip NotoSansDevanagari-hinted.zip
# fc-cache -fv

अंग्रेज़ी कुन्जी पटल के द्वारा हिन्दी लिखें

इसके लिए हम quail और company का प्रयोग करेंगे । Quail एक Input Method Framework है। यह अंग्रेज़ी कुन्जी पटल के keystroke को देवनागरी लिपि के Unicode अक्षरों में परिवर्तित करता है। इन अक्षरों को popup में दर्शाने के लिए हम company का प्रयोग करेंगे जो कि एक Completion UI Framework है।

~/.emacs में लिखें :
(setq ispell-alternate-dictionary "/home/aspell6-hi-0.02-0/hi.wl")

 
हिन्दी वर्तनी परीक्षक




इसके लिए हम aspell का प्रयोग करेंगे। aspell  स्थापित करें।
sudo apt install aspell

aspell के लिए https://ftp.gnu.org/gnu/aspell/dict/0index.html से हिन्दी शब्दकोश स्थापित करें। aspell6-hi-0.02-0.tar.bz2 के स्थान पर नवीनतम फ़ाइल के नाम का प्रयोग करे ।
bunzip2 aspell6-hi-0.02-0.tar.bz2
tar xvf aspell6-hi-0.02-0.tar
cd aspell6-hi-0.02-0/
./configure
make
sudo make install

Emacs मे किस शब्दकोश का उपयोग करना है, यह जानकारी देने के लिए हमें दो काम करना पड़ेगा ।
  • ~/.emacs में लिखें :
(setq ispell-aspell-dictionary-alist nil)
  • हिन्दी शब्दकोश का चयन करें M-x ispell-change-dictionary.
इसके बाद शब्दों की जांच के लिए आप M-$ का इस्तेमाल कर सकते हैं ।




Comments

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Tinylisp and Multi-threaded Emacs

Data Visualization with GNU Emacs