Showing posts with label XeTeX. Show all posts
Showing posts with label XeTeX. Show all posts

Wednesday, March 25, 2009

why isn't life more like Unicode?

It's 12:03pm in Berlin. The sun is shining. Cars whiz up and down Hauptstrasse outside this café. Wherever Randall Munroe may be it is now definitely Wednesday. I'm supposed to be sorting out contractual issues, which ought to mean writing an e-mail and sending it but turns out to mean writing e-mails and putting them in the Drafts Folder and wandering Etherworld in search of solace. A frame of mind in which I naturally turn to XeTeX. The webpage now has screenshots of various multilingual documents, which look awfully nice; I could use XeTeX to typeset a book.

One of the screenshots was of the Arabic version of What is Unicode; went over to the Unicode website to have a look around, and came upon the Last Resort Font:

Last Resort Font

The Last Resort font is a collection of glyphs to represent types of Unicode characters. These glyphs are designed to allow users to recognize that an encoded value is one of the following:

  • a specific type of Unicode character
  • in the Private Use Area (no private agreement exists)
  • unassigned (reserved for future assignment)
  • one of the illegal character codes.
These glyphs are used as the backup of "last resort" to any other font; if the font cannot represent any particular Unicode character, the appropriate "missing" glyph from the Last Resort font is used instead. This provides users with the ability to tell what sort of character it is, and gives them a clue as to what type of font they would need to display the characters correctly. (For more information, see The Unicode Standard, Version 5.0, Section 5.3 Unknown and Missing Characters, pages 155-156.)


Which sounds like the sort of thing we need for daily life. In its absence things go horribly wrong and no one knows why, because unrepresentable characters have no appropriate "missing" glyph.


Friday, July 4, 2008

3.04 am

At 1 am it was cool and fresh, the perfect time to go the gym. I am about 90% sure that my bike has been stolen (if I were to find I had left it locked up somewhere in the neighbourhood I would not be surprised, exactly, but I'm pretty sure it's gone) so this means walking. I go. I get back and check e-mails, as one does. Suddenly remember that a commenter on the blog suggested XeTeX. I go over to the XeTeX site and find:

"Ven. Pandita", Sun, Jan 27, 2008 03:54 (CST)
hyphenation

Hi!

I am a Buddhist monk who uses Lyx (1.5.3) and XeTex (part of TexLive 2007) on Ubuntu Linux (7.10) to type Pali, Sanskrit, phonetic symbols and English together in the same document.

The problem is that XeLatex would produce PDF files with seemingly random hyphenation in the middle of lines instead of at linebreaks. So I change the language setting of Lyx to Welsh, of which there is no language file on my system; my purpose is to force manual hyphenation. But that random mid-line hyphenation still appears.

What should I do to remedy it?

Changing the language setting of Lyx to Welsh, of which there is no file on the system, as a way of forcing manual hyphenation - how like life.

(The opening line of this letter reminds me somehow of Anne Tyler's Morgan's Passing. An unimprovable way of introducing oneself, which one would naturally love to try.)