Posts

Showing posts with the label devanagari

Plan 9: Emoji

Image
  Noto Emoji Font Note:  Noto Color emoji needs Color Bitmap Data (CBDT) or COLR/CPAL support.   Four independent bugs, spanning truetypefs.c , hint.c , and head.c : 1. assert(gs[i] != nil) crash in compilesub ( truetypefs.c ) ttffindchar returning glyph 0 for a rune inside a declared cmap segment (a genuine gap, not just the NUL special-case) skipped the retry-via-notdef path entirely. If the font's own .notdef then also failed to rasterize, the assert took the whole fileserver down. Fixed by replacing the assert with a synthesized blank placeholder as the last resort in the fallback chain. 2. No bounds checking on glyph geometry before blit() ( truetypefs.c ) blit() has zero validation of its own; compilesub sized the destination strip from the font's declared ascentpx + descentpx but never checked that an individual glyph's actual rendered width/height/vertical position fit inside that buffer. A decorative font ( architectsdaughter ) reporting ink extents...

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

Image
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 के लिए...