Skip to Content
Fonts & Encodings
book

Fonts & Encodings

by Yannis Haralambous
September 2007
Intermediate to advanced
1040 pages
31h 23m
English
O'Reilly Media, Inc.
Content preview from Fonts & Encodings

3.1. Basic properties

3.1.1. Name

The name of a character is what we have called its description. The official list of the English names of characters according to their positions within the encoding appears in the following file:

http://www.unicode.org/Public/UNIDATA/UnicodeData.txt

This file contains a large amount of data in a format that is hard for humans to read but easy for computers: fifteen text fields separated by semicolons. Here are a few lines from this file:

   0020;SPACE;Zs;0;WS;;;;;N;;;;;
   0021;EXCLAMATION MARK;Po;0;ON;;;;;N;;;;;
   0022;QUOTATION MARK;Po;0;ON;;;;;N;;;;;
   0023;NUMBER SIGN;Po;0;ET;;;;;N;;;;;
   0024;DOLLAR SIGN;Sc;0;ET;;;;;N;;;;;

The first two fields are the character's position (also called its "code point") and name (which we called its "description" in the previous chapter). These are fields number 0 and 1. (Counting begins at 0.) We shall see the other fields later.

Character names are not there solely for the benefit of humans; programming languages also understand them. In Perl, for example, to obtain the character that represents the letter 'D' of the Cherokee script, we can write \N{CHEROKEE LETTER A}, which is strictly equivalent to \x{13a0}, a reference to the character's code point.

3.1.2. Block and script

These properties refer to the distribution of the full set of characters according to the script to which they belong or to their functional similarity. Thus we have a block of Armenian characters (Armenian), but also a block of pictograms ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Unicode Explained

Unicode Explained

Jukka K. Korpela
Unicode Demystified

Unicode Demystified

Richard Gillam
Developing with PDF

Developing with PDF

Leonard Rosenthol

Publisher Resources

ISBN: 9780596102425Catalog PageErrata