Questions tagged [unicode]

Unicode is a standard for the encoding, representation and handling of text with the intention of supporting all the characters required for written text incorporating all writing systems, technical symbols and punctuation.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Override the default font for emoji characters

My fonts setup is (setq default-frame-alist '((font . "DejaVu Sans Mono-10"))) (defun my-emoji-fonts () (set-fontset-font t 'symbol "Twemoji") (set-fontset-font t 'symbol &...
3
votes
1answer
106 views

How to open a file which looks like unicode in emacs

I have a file in my C: drive on Windows named MSDELog.log and from opening the file with a hex editor I can see that there is a null character after each character. But there is no indicator at the ...
0
votes
1answer
42 views

Penguin character in file

I use Spacemacs. I tried to type a command, but I mistyped. Instead of what I intended, a character was inserted that renders as this: I suppose that is Tux. When I try to copy the character, I get ...
0
votes
1answer
85 views

Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?

I'm having a hard time getting unicode to properly displayed in GUI. I'm trying to type poker cards unicode inside emacs GUI, 🂩 for instance. I would like to use font "Ubuntu Mono", NOT ...
1
vote
0answers
48 views

Paste very specific Unicode in scratch buffer freezes emacs -Q

I experienced a freeze which can be reproduced very easily on GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0) of 2020-08-25 . emacs -Q Copy the Unicode U+...
0
votes
1answer
31 views

Use LaTeX accents with tex insert method

With this answer I learned how to insert math symbols with latex syntax directly into my buffer. What I can't figure out is how to make accents insert properly. I want \hat{\beta} to insert beta hat ( ...
1
vote
1answer
44 views

How to insert mathematical symbols in emacs

I'm writing an Asciidoctor file to take notes for statistics and would like to insert mathematical symbols like β. Is there any way to do this without copy and pasting?
1
vote
0answers
33 views

Ignore meta key when inputting unicode on OSX

I'm a newbie running emacs 26.3 (9.0) on OSX in the graphical mode (i.e. not in the terminal) and am writing a document with Devanagari (sanskrit text). Some of the letters in the inbuilt devanagari ...
0
votes
1answer
60 views

How to insert lowercase Greek nu Unicode character?

I am writing Julia code in Emacs, which allows the use of unicode characters in the source code. However, some symbols come out looking weird. For example the Greek letter nu: becomes: Does anyone ...
0
votes
0answers
55 views

Emacs -nw prints Turkish characters incorrectly

I use Emacs 25.2.1 on a Windows XP Laptop with a Turkish keyboard. Problem I get some non-ascii letters which are also found in German keyboards such as 'ö' and 'ü' and some letters which are also ...
1
vote
3answers
79 views

How can you automatically translate fractions into their short unicode versions? e.g. ⅔

Ideally one can just type fractions as normally e.g. 2/3, and either the view simply displays it as ⅔, without changing the text itself OR the text itself is changed. I need this for org mode in case ...
0
votes
1answer
46 views

How to use unicode character for truncation and wrap slots in the standard display table

I'm trying to set unicode characters for the truncation and wrap slots in the standard display table (see code below) that are used in terminal mode or GUI when there is no fringe. It is working for ...
1
vote
0answers
38 views

unicode-fonts help needed

Any experts in the unicode-fonts package out there? What I am trying to do is set the font for CJK characters and not use the default. This seems very tough! Using the customize interface injected ...
1
vote
1answer
48 views

How to enter overlined characters?

Example: R̅E̅S̅ What I already tried, to no avail: Type R, followed by C-x 8 RET OVERLINE RET What works but is not nice: Copy the example above and edit it.
1
vote
1answer
139 views

How to regex match words? (in multiple languages)

I have a simple regex search which matches [A-Za-z], however I would like it to match other characters which would be used in dictionary words for non-english languages. e.g. ü, Ø, ɵ 人参, while ...
2
votes
2answers
295 views

Unicode input from keyboard (QMK) to Emacs

I have setup my QMK-enabled keyboard to output Unicode characters. In short, that was adding UNICODE_ENABLE = yes line to the rules.mk file and adding the following two lines to the config.h file. #...
0
votes
0answers
28 views

Windows emoji input compatibility with emacs (i.e. emojify)

Windows has a way to input emoji by using Win+. or Win+;. However Emacs interprets them with mixed results, more often than not entering spaces or garbage characters. Is there a way to make this way ...
0
votes
1answer
55 views

mail attachment filename coding

I try to use mu4e with smtpmail to send mail, and use mml-attach-file to add attachment. If the attachment filename contains non-english name, such as Chinese, the header of message will become ...
1
vote
1answer
34 views

Problem with emacs and sagemath unicode

I am using Emacs (GNU Emacs 24.5.1, which is admittedly old, but the problem also exists on a newer (25 something) Emacs on a different machine) and sage-shell-mode to work with the computer algebra ...
0
votes
1answer
38 views

How to display unicode chars in ielm

I'm using emacs on MAC OSX ELISP> (emacs-version) "GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2019-09-06" ielm REPL echoes back ...
2
votes
2answers
149 views

Can Emacs render family emojis? (Emoji ZWJ Sequences)

For example (explained on Emojipedia): 👨‍👩‍👧‍👦
1
vote
0answers
29 views

Unicode character display in emacs info under Chromebook secure shell

This may not be an Emacs configuration issue, but here are the symptoms: On a Chromebook, I'm using chrome's Secure Shell Extension v0.18 to ssh in to an Ubuntu 16.04 host, LANG set to en_US.UTF-8, ...
1
vote
1answer
214 views

Unicode characters in org-mode tables

Here's an org-mode table with some unicode math characters in it: Note that the columns don't align. I can manually fix the issue by inserting literal tab characters after each character via ctrl-q ...
3
votes
2answers
727 views

Howto display unicode character \u2026 in terminal mode in emacs

Magit uses Horizontal Ellipsis unicode escape "\u2026" (which should display as "...") to mark hidden section. How can I configure the Terminal/Emacs to display them when running in terminal mode (...
1
vote
1answer
55 views

Does `<meta charset=utf-8 />` obviate `-*- coding: utf-8 -*-` in an HTML file?

Is writing <meta charset=utf-8 /> in an HTML file (being edited by Emacs) sufficient, or do I also need to specify -*- coding: utf-8 -*- on the first line? In other words, do I have to write &...
2
votes
1answer
120 views

Emacs displays Hebrew text incorrectly

I have a number of org-mode/text documents that contain English and Hebrew text. They are scholarly papers. However, the Hebrew text in Emacs is not displayed correctly. I am using Dejavu Sans Mono as ...
0
votes
1answer
64 views

Search and replace isn't working in my function

I created the following function to remove macrons from vowels (this is a reduced version that only searches for the vowel "ā"): (defun nv/eliminatemacron () "" (interactive) (save-excursion ...
1
vote
1answer
160 views

detect unprintable glyph (aka “no font available”) programmatically

Sometimes a font or a font at a special fontsize does not support a unicode glyph. Then a placeholder (box with character number) is printed, see screenshot with selected line: How can I ...
1
vote
1answer
84 views

use euro symbol (or any symbol) for emacs keybinding

I set up this duplicate line function: https://kundeveloper.com/blog/duplicate-line/ and bound it to the euro symbol like this: (global-set-key (kbd "M-€") 'duplicate-line) And it worked (for a ...
1
vote
1answer
227 views

Org-ellipsis displayed inorrectly for some headlines only

So in order to customize my org mode files, I have (setq org-ellipsis "⤵") in my config, which seems to be a very popular customization (the arrow being U+2935). This works correctly for the most ...
1
vote
2answers
1k views

Org mode bullets

I am using org-bullets package but the rendering of unicode bullets doesn't seem correct to me. I tried changing the to different fonts without any success. Also I can't find anything related to ...
4
votes
1answer
68 views

Compose characters

I have some copied text from a pdf which renders like this with my current font: I know I could use a different font that handles Unicode characters better, but I would rather find a function to ...
4
votes
2answers
417 views

Inserting the plus minus unicode symbol ± as a keyboard macro

I insert the plus minus symbol ± frequently enough that I want to bind it to a key. From emacs -Q, I've tried this: (global-set-key (kbd "C-c m") "±") However, when I enter C-c m, the minibuffer ...
1
vote
0answers
84 views

Wrong unicode glyphs in emacs?

I recently came across a python file "*.py" containing several prints consisting of unicode symbols. I noticed that several symbols are displayed with different glyphs in emacs than in another editor. ...
2
votes
2answers
231 views

What is the equivalent code of a Unicode character

For example I know that 2018 is the hexadecimal equivalent of left single quotation mark, and I have the following questions: 1: Is there a way to input the Unicode name to Emacs and get the ...
2
votes
1answer
274 views

How can I have same font and font-size everywhere?

I'm tired of the weird (seemingly) unpredictable font behavior not just in org-mode but also anywhere I use some unicode symbols. My setup is spacemacs and I'm looking for function that I can run on ...
2
votes
2answers
184 views

Greek typing & spell-checking with hunspell: encoding issue?

hunspell-checking Greek text I create in Emacs is not working. Notes: I am aware of this post: Spell check with multiple dictionaries Eventually, I want to use ispell with hunspell in Emacs, which ...
4
votes
2answers
534 views

How can I find non-displayable unicode characters in a buffer?

I mean these: I'd like to remove them, so I'm looking for a function which can find all these characters in the buffer which cannot be displayed properly with the current font and therefore show up ...
7
votes
1answer
280 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
5
votes
2answers
115 views

(ucs-names) in Emacs 26 is not working for “EURO SIGN”

I have in my .emacs: (when (>= emacs-major-version 23) (define-key global-map "\C-x8g" (lambda nil (interactive) (ucs-insert `,(cdr (assoc-string "HRYVNIA SIGN" (ucs-names) t))))) (define-key ...
7
votes
1answer
1k views

Insert character by its Unicode name

From the documentation of insert-char, I cannot see why (insert-char "GREEK SMALL LETTER EPSILON") doesn't work. Is there a non-interactive way to insert a character given its Unicode name?
0
votes
1answer
103 views

Function that returns the name of a Greek vowel

I'm trying to write a function that will return the name of a Greek vowel: alpha or epsilon etc. I was hoping this could be done by extracting it from the second group in the following regexp (in a ...
0
votes
1answer
57 views

Re-align text after a bigger symbol

I'd like to customize a bit mu4e in order to display nice utf-8 chars (or still better, colored emojis). However, the problem is that the utf8 chars does not have the good width (even in the mono ...
1
vote
1answer
190 views

Display glyphs instead of codepoints

I have a JSON file where Unicode characters are encoded as UTF-8 codepoints, example: \u05de instead of the Hebrew character Mem (מ). How could I get emacs to display glyphs instead of the codepoint ...
3
votes
3answers
496 views

Greek (Unicode) in Org mode export to PDF

I am working on a project that deals with polytonic Greek, and wish to write everything in Org mode, and export to a PDF with one of the compilers (like XeLaTeX). I have spent hours today reading ...
0
votes
0answers
24 views

Change line length calculation of a certain character displayed with multiple glyphs

I am differentiating em-dashes (—) from hypens (-) in emacs using this code in my .emacs: (let* ((glyph-em-dash (make-glyph-code ?\u002D 'font-lock-function-name-face)) ) (aset standard-...
2
votes
1answer
219 views

Jump to and highlight characters matching regex

How can I jump to the next character matching a regex (see example below)? And if possible, enable highlighting of all the matching characters in the buffer when I jump for the first time. [^\x20-\...
2
votes
2answers
887 views

How to search for any unicode octal character in a buffer?

I'm looking for a way to locate all unicode octal characters in a buffer such as \344 and replace them with ä or \353 with ë, etc. At the least if I could just locate octal characters using ...
2
votes
1answer
1k views

Spacemacs mode-line unicode characters: what do they mean?

I've found it hard to discover the source or meaning of the unicode characters in the mode-line. All questions I've found referencing them are about how to get them to display correctly --- e.g. this ...
1
vote
1answer
149 views

Org tangle source blocks to a file with byte-order-mark (BOM) from org mode

Because Firefox doesn't load local files with UTF8 characters like '📞, …, 🖥' in the HTML or the CSS correctly, since it does not receive a <meta charset="utf8" /> header, I need to tangle ...