We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
1answer
16 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
22 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 ...
1
vote
2answers
76 views

Can Emacs render family emojis? (Emoji ZWJ Sequences)

For example (explained on Emojipedia): 👨‍👩‍👧‍👦
1
vote
0answers
17 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
0answers
45 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 ...
2
votes
2answers
159 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
31 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 &...
1
vote
1answer
51 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
51 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
77 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
57 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
111 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 ...
0
votes
1answer
234 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
50 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
218 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
72 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
207 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
195 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
122 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
212 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
155 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
96 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 ...
6
votes
1answer
763 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
81 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
36 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
103 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
2answers
250 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
18 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
134 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-\...
1
vote
2answers
452 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
893 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
108 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 ...
1
vote
1answer
61 views

How to put a right arrow above a Latin letter?

I want to write: ⃗E, I tried to C-x 8 <RET> COMBINING RIGHT ARROW ABOVE <RET> E it is displaying in Emacs like: I want to use Unicode (without Tex). EDIT in reply to Drew's comment: ...
2
votes
0answers
238 views

No unicode glyphs

I am experiencing trouble displaying unicode glyphs overall in emacs. All unicode glyphs are displayed as boxes with the number for the unicode glyph inside. To best show what I mean, the M-x list-...
1
vote
0answers
50 views

desktop-save doesn't save file names with emoji properly

desktop-save-in-desktop-dir doesn't save file names that include glyphs from upper unicode range like emoji characters properly. By "upper", I mean "greater" like one with a code point 1F604 instead ...
0
votes
0answers
59 views

Automated conversion to real accented characters

I use org-mode to maintain a to-read list of articles. An entry in the list is produced by a function that I wrote in ELisp. The function uses bibtex-completion-get-value for the title and bibtex-...
1
vote
1answer
144 views

Get multibyte string byte

Given a multibyte string "x=π", how to get 4-th byte of the string, without creating string copy with something like string-as-unibyte? Pseudo code: (string-nth-byte 4 "x=π"). Expected result: 128. ...
1
vote
0answers
55 views

How to switch off Unicode bidi markers?

Do you know how whitespace mode turns on the visibility of certain normally non-visible characters, such as the space and the tab? Well, I'd like to be able to emulate this with Unicode bidirectional ...
9
votes
1answer
677 views

unicode.txt slowness

Moving around point (using the cursor keys) in Xah’s unicode.txt in fundamental-mode is noticeably slower than in an ordinary text file. Are the many non-ASCII characters the issue? Anything else? ...
2
votes
1answer
563 views

Unicode character display

Here's how some of the double-struck unicode letters display in my copy of Emacs for Windows: Here's how they display in Notepad: Version of Emacs: What's a good way to get Emacs to display all of ...
1
vote
1answer
289 views

What is Emacs' default character encoding for saving files? If it is UTF-8, is a BOM (Byte Order Mark) inserted?

What is the default character encoding used by GNU Emacs 25.1.1 to save files? Is it UTF-8? Assuming that it is UTF-8, does Emacs insert a BOM at the beginning of the file?
1
vote
1answer
67 views

Abbreviation expansion without spaces

I would like to set up things so that when I type Iuulius, the sequence uu is seamlessly replaced by ū (and a few more such pairs), as soon as I type the second u. I.e. the keystrokes and buffer text ...
6
votes
1answer
140 views

char-fold-search match for German eszett (ß)?

In emacs 25.1, if I customize search-default-mode to "Char-Fold Search", then an isearch-forward for u matches ü and one for o matches ö. But what character should I type to match ß ?
4
votes
0answers
82 views

(set-charset-priority 'unicode) ; should I do it?

I've seen the following in some init files, (set-charset-priority 'unicode) but after reading the documentation, I can't really say I understand the implications of this. In general I'm inclined to ...
1
vote
0answers
127 views

How to change font without breaking Unicode glyph mapping?

I am using Emacs 24.5 (stock Debian jessie) with a UHD display. I am over 50 and I need a large font. I have found a font that works well, but when I set the font using (set-face-attribute 'default ...
2
votes
2answers
222 views

Programmatically check whether a unicode character will render as tofu

Is there a way to programmatically determine whether a given unicode character will render as tofu in some context in Emacs? Some bug-flavored (U+1F41B) tofu renders in a face using DejaVu Sans Mono:
6
votes
1answer
45 views

How do I customize the way Emacs prints out certain keys and key sequences?

For example, I want Control key to be displayed not as C but as ⎈ (U+2388 HELM SYMBOL) in the minibuffer. Trying to personalize my Emacs and display all function keys as ISO symbols. And sequences to ...
6
votes
3answers
386 views

Translate ae to ä on non-German keyboard

If for some reason I am stuck to a keyboard with English layout and I often have to enter text in German - can emacs translate ae to ä (or ue to ü) for me? I do have a not-working solution like this: ...
1
vote
0answers
446 views

Charset and fonts shown by `describe-char`

I have some questions about emacs internal actions related to charset and fonts shown by describe-char. Now I use utf-8 as character encording scheme (CES) on emacs, so charsets shown by describe-...
4
votes
1answer
453 views

Under Windows, Emacs cannot handle encodings correctly for subprocesses, can it?

I have two simple text files on my D: drive, as shown below. D:\我.txt I D:\你.txt You After I execute M-x diff and type the correct filenames (Yes, I can input Chinese and filename ...