Thursday, May 24, 2012

Two more good Devanāgarī fonts

I have posted an update to this post with some new material.

Steve White has recently done a great deal of work updating the FreeSerif and FreeSans Unicode fonts (that are, er, free).   He has done especially important work on the Devanagari characters in the font, as well as several other Indian writing systems.  See here for a listing of what has changed. Steve's work means that the Devanāgarī in the Free* fonts now works not only with Xe(La)TeX but also in Firefox, LibreOffice and other programs.  Thanks, Steve!

Zdeněk Wagner recently announced (here) that,
A few days ago version 20120503 of GNU FreeFont was released. This (OpenType as well as TrueType) version contains working Devanagari. FreeSans is based on Gargi with bugs fixed and positions of matras fine-tuned (and changes were reported back to the Gargi developers), FreeSerif is based on Velthuis fonts. Both fonts contain the Indian Rupee sign. In XeLaTeX, conjuncts in FreeSerif can be switched on/off according to the language.
Zdeněk provided an example file showing FreeSans and FreeSerif, and demonstrating the different conjuncts of Sanskrit and Hindī.  I have taken the liberty of expanding his file to compare some of the other leading Unicode fonts that contain both Devanāgarī and Latin typefaces in the same font:

XeLaTeX Input:
\documentclass{article}
\usepackage{polyglossia}

\defaultfontfeatures{Mapping=RomDev,Script=Devanagari,Language=Sanskrit}
\newfontfamily\eng[Mapping=tex-text]{TeX Gyre Pagella}
\begin{document}
\setmainfont{FreeSerif} \newfontfamily\eng[Mapping=tex-text]{FreeSerif}
{\eng FreeSerif} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\setmainfont{FreeSans} \newfontfamily\eng[Mapping=tex-text]{FreeSans}
{\eng FreeSans} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\setmainfont{Sanskrit 2003} \newfontfamily\eng[Mapping=tex-text]{Sanskrit 2003}
{\eng Sanskrit 2003} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\setmainfont[FakeStretch=1.08]{Sanskrit 2003}
{\eng Sanskrit 2003+} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\setmainfont{Nakula} \newfontfamily\eng[Mapping=tex-text]{Nakula}
{\eng Nakula} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\setmainfont{Sahadeva} \newfontfamily\eng[Mapping=tex-text]{Sahadeva}
{\eng Sahadeva} = शक्ति, kārtsnyam {\addfontfeatures{Language=Hindi} Hindī = शक्ति}
\end{document}
Output:
(click to enlarge)

Note the use of the RomDev mapping to get "कार्त्स्न्यम्" out of "kārtsnyam", just for fun.  I've included Sanskrit 2003 twice, the second time with a bit of horizontal stretch, that I think makes it look nicer.
The official web page of the newly-updated FreeSans and FreeSerif fonts is:
As Zdeněk adds, ``Hopefully the font will soon appear in TeX Live and (some) Linux distributions. If you install it independently, be sure that you do not have font conflicts."

Be sure to delete all earlier versions of FreeSerif and FreeSans that might be lurking on your hard drive.  Then install the new version.  If you find the conjuncts aren't working as promised, you probably have an old FreeSerif or Sans lurking in a directory somewhere that you have forgotten about.

Saturday, May 19, 2012

Medical History (cont.)

The January 2012 issue of the journal Medical History has now appeared online (here).  This is the first issue with the new publishers and under the new editorship.

The good news is that
  • the articles are copyrighted to the authors, and
  • articles are freely downloadable.  
This is very good for the authors and readers.  However, the terms on which the papers may be distributed are not stated.  The authors may not wish their papers to be copied, or they may wish to charge for copies, or they may wish to apply one of the several Creative Commons licenses.  Nothing is stated.  However, since the PDFs of the papers are freely downloadable from the CUP website, obviously this is what the authors and the publisher intend readers to do.

If you click the "Request Permissions" on the CUP website, then a window opens in which CUP asserts its own copyright of the article.

A menu system lets you request various things, including the right to make photocopies not-for-profit.  The charge for this right (not the copies themselves) is about $5 per copy.  This charging option appears to be an honour system.

The Transfer of Copyright form is still presented for authors to sign (here), by which authors sign over their copyright to CUP.  But since authors seem to be keeping their copyright (a very good thing) perhaps these forms are just a relic, and will be withdrawn.

The same applies to the Open Access Transfer of Copyright form (here), which asks authors to send CUP £425/$675 (plus VAT) for giving their copyright to CUP and having CUP publish their articles under an Open Access license.  Perhaps if one paid this fee, the "Request Permissions" page would not ask for money for photocopies?  In any case, since everyone can download the articles freely already, and they are copyrighted to the authors, there would seem to be little incentive to pay the above fee.  The authors - who own the copyright - could themselves choose to place a Creative Commons license on their work, for example an Attribution-NoCommercial-NoDerivs license, thereby releasing any reader from the obligation to pay anything for making copies or using the article in teaching, linking to it from a Moodle website, etc.

So, at present, the rights and distribution situation with Medical History shows real promise.  Authors are retaining their copyright, and articles are freely downloadable from the CUP website.  This is great   In due course, presumably the articles will also appear in the online Medical History archive at the National Library of Medicine / Pub Med Central (here), as the editor, Sanjoy Bhattacharya said they would.

Residual confusions exist because of the continuing statements on the journal's CUP website that CUP owns the copyright of the articles, and that it wants authors to transfer their rights to CUP and to pay fees for Open Access distribution.  It is very much to be hoped that these are just teething problems and that the journal will continue to
  • allow authors to retain copyright 
  • that authors will not be charged any "article processing fee", and
  • that articles will be freely readable by anyone anywhere.