## Friday, January 24, 2014

### Medieval Cyrillic fonts in LaTeX (or XeLaTeX)

Links: tfm font install :: ttf fonts available :: old bulgarian lcyw

NB: A short note about WYSIWYG processor LibreOffice is at bottom.

Although analysts of Medieval Russian want to author text in modern Russian typefaces, they want their software to convert selected passages into Old Slavonic typefaces, change formatting, scale the text, and so on. These tasks could theoretically be accomplished in any good word processor. LaTeX with its immense formatting flexibility, would presumably be near the top of such a list but, unfortunately, straightforward LaTeX configuration solutions appear difficult to locate for older Cyrillic typefaces. Here's an outline of some of the steps I took.

### LaTeX - installed cyrillic fonts

LaTeX font files have an associated .tfm file. Find their directory by following the variable (TEXMFLOCAL) which points to it. The list of directories for various fonts is underneath it...
$kpsewhich --var-value TEXMFLOCAL$ ls ~/latex/2013/texmf-dist/fonts/tfm/
$unzip lcwy.zip -d ~/texmf$ texhash

### xelatex - packages

Using xelatex, the following compiled...

\documentclass[letterpaper]{article}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}

\setmainfont{DejaVu Sans}

\begin{document}
Russian text block
\end{document}
... but produces a severe, sans-serif Ukrainian.

### LibreOffice - ttf

For WYSIWYG, a partial solution is true-type fonts. We can obtain fonts here for some medieval slavic fonts. One researcher particularly liked "dilyan.ttf", and "BukyVede-Regular.ttf"; he said they were accurate except for lacking diacritics. I explained he could place TTF's into LibreOffice /usr/share/fonts or ~/.fonts, directory (I prefer ~./fonts); they were immediately available on his font list the next time he opened LibreOffice.

## Monday, January 6, 2014

### [solved] zotero consistency - standalone w/browsers

After an update to Chromium, and using standalone Zotero, I no longer had Zotero icons in the URLbar at book and article sites. What a pisser --- it looks like yet another "one of those things" on the long list of problems we all face during updates. I wish I were a database designer so I didn't have to rely on database products (eg. Zotero), but that's life.

### solution

It appears the new disconnect between the browser and Zotero is a "translation" issue. I went to the Zotero site and downloaded the Chromium extension "Zotero Connector" and, voila, my URLbar icons for documents reappeared.

### citation backup - zotero

Some of us forget where we installed the data directory when we installed Zotero originally. Open Zotero then note the "Show Data Directory" button (Edit-> Preferences -> Files and Folders) which points to it. The best backup is to copy the "zotero" folder with all subdirectories (eg., "storage").

### bare bones

In a pinch, copy the file and subdirectory:
• zotero.sqlite
• "storage" subdirectory
With these, use a file manager to overwrite the vanilla versions of these after a vanilla install.

### restoration

If I only have the database, without storage, I'd have to reenter all the notes and so forth, but I'd at least have my titles and authors. Overwriting an entire install's "storage" directory and zotero sqlite is a complete restoration.