Further to the Devanagari samples of 2017, here's an update showing some of the new Adishila fonts.
Wednesday, June 01, 2022
Monday, May 30, 2022
Further notes on the Rasendramaṅgala and Rasaratnākara
This is an addendum to my article "An Alchemical Ghost" in Ambix (1984: 70--83). DOI: 10.1179/amb.1984.31.2.70.
The chapters of the Rasendrakhaṇḍa
In 1984, I was not able to list the names of all the chapters of part 2 of the work, the Rasendrakhaṇḍa. Chapters 17-19 were missing from all the sources available to me. The name of chapter 20 was derived from a catalogue entry for a manuscript in Germany
- On p. 82, discussing the Rasendrakhaṇḍa, I referred to the edition of Y. T. Ācārya (1913) as being unavailable to me.
Details:Ācārya, Yādavaśarma Trivikrama, ed. śrīnityanāthasiddhaviracito Rasaratnākarāntargataś Caturtho Rasāyanakhaṇḍaḥ .. Saṃśodhitaḥ Prakāśitaś Ca = Rasayanakhanda, Fourth Part of Rasaratnâkara by Shri Nityanâthasiddha Edited by Jadavjî Tricumjî Âchârya Āyurvedīya Granthamālā (Bombay: The editor, at the Nirnayasagar Press, 1913).
A scan of that edition is now available at http://n2t.net/ark:/13960/t0005h71h
For the record, a reprint of this book, falsely calling itself a first edition (prathamaṃ saṃskaraṇam), was published by Caukhambā in Banāras in 1939. A scan of that second edition is available at http://n2t.net/ark:/13960/t9285md2b.
Ācārya's edition was based on two manuscripts owned by his friends:
1. Bombay, property of Vaidya Dāmodara Viṭṭhala Damaṇakara,
2. Barodara, property of Amṛta Vināyaka Jāmbekar.
This book does not give a list of the chapters of the Rasendrakhaṇḍa. - Jīvānanda Vidyāsāgara Bhaṭṭācārya's Calcutta edition of 1878. I can find no online scan of this volume. It is described as edition "a in HIML IIB, page 702, footnote 169. This edition ascribes the Rasaratnākara to Nityānanda Siddhānta (sic). The final colophon of MS Jammu Raghunatha 4904 also makes this attribution.
- My other source for the twentieth Rasendrakhaṇḍa chapter name, viṣacikitsā, was taken from Janert and Poti, VOHD 2.2 (1970), no. 953:
MS Kathmandu NAK 4-1537
This MS, microfilmed by the NGMPP as A219/4 is available to me for study. It contains the Rasendrakhaṇḍa. The chapter titles up to 16 match almost exactly those published in Wujastyk 1984: 72. In addition there are the following chapter names:
17. vātapittaśleṣmādīnā cikitsā
18. sthaulyādikārśyāṇivāraṇam
19. śirorogacikitsā
20. [but called 25] karṇarāgādivakṣuroganivāraṇam
21. nāsyarogādichardinivāraṇam
22. vātarogādikāngranthinivāraṇam
23. hṛdrogādidīpanānta
24. ajīrṇādichādarogāṃtacikitsā
25. apasmārādisarvabhūtanivāraṇam
26. vṛścikāviṣādisaṃyogajānam
27. agnidagdhādibālagrahanivāraṇam
28. cikitsā
Thus, according to this manuscript, the Rasendrakhaṇḍa has not 20 but 28 chapters. Chapter 26 is on poisoning by scorpions etc.
MS Kathmandu NAK 5-3089, dated to 1648 CE
This MS, microfilmed by the NGMPP as A216/15 is available to me for
study. Dated saṃvat 1705. It contains the Rasendrakhaṇḍa. The chapter titles up to 16 match almost
exactly those published in Wujastyk 1984: 72. The additional chapter titles 17-28 match MS Kathmandu NAK 4-1537 exactly.
Friday, April 22, 2022
Linux Mint Cinnamon problem and fix
I recently installed and used a Python program, internetarchive. Somewhere along the line of installing it with pip, the Python setup on my machine got changed, not in a good way. Lots of Python programs are apparently very sensitive to Python version numbers.
The symptom was that sound stopped working on my system (except in Zoom, which evidently handles its own sound subsystem). Then, sound menu wouldn't come up. Then the Cinnamon system settings control centre, cinnamon-settings, wouldn't come up. It generated an error saying that it couldn't find "requests." At another time, it couldn't find "urllib3".
Cut a long story short, running
sudo apt reinstall requests urllib3
fixed the problem.
Wednesday, April 13, 2022
Essay-writing support
There are many guides available to help you with essay-writing. Here are some that are easy to get:
- The Modern Humanities Research Association puts out an excellent booklet on writing: The MHRA Style Guide. You can buy it in print (cheap), read it online, or download their free PDF version. Unlike the other guides mentioned here, the MHRA guide is only about the mechanics of writing, spelling, punctuation, footnotes, and bibliographies. It does not help with how to assemble your ideas, or plan an essay. But since it's free as a PDF, just get it. It will help you organize your writing and answer questions about silly details like what English words should have capital letters, or how to put together your bibliography.
- One of my other favourites is the long-established students' guide published by the UK's Open University,
- The Arts Good Study Guide by Chambers and Northledge (2nd ed., 2008). It's clearly printed, well-written, and realistic. See the copy at archive.org (first ed., but still good).
- The sister volume, The Good Study Guide (2005), was also excellent, but it's hard to get now (amazon). At archive.org. Or the epub torrent.
- The University of Southampton has a Study Skills Handbook by Barbara Allan that addresses essay-writing in chapter 7. Chapter 13 on Reflection is unusual and rather good, I think. Free online PDF.
- Two more very short ones:
- Many students whose mother tongue isn't International English have difficulty with "a" and "the", the definite and indefinite articles. There is some excellent online help here at englishpage.com.
It doesn't matter which
There are many other writing guides, each with their own genuine virtues. For example, the Oxford Essential Guide to Writing or The Economist Style Guide, or Kate Turabian's famous A Guide for Writers of Research Papers, Theses, and Dissertations. They're all excellent. The most important thing is not which one you get, but that you get one, absorb its messages and put them into practice.
How to begin
Many guides to writing suggest that you should begin by having a question, and then doing some research, organising your notes, and then writing your essay. Or some variant of this procedure. I am not sure I agree.
I think it's important to start with a question, yes. But sometimes the best way to begin can be to actually sit down and start writing or typing. Write a sentence, or two, or a paragraph, about the question. Then you will begin to feel how much you know and can say, and how much you need to go and read in order to be able to write the next sentence.
The great cultural historian Peter Burke made some interesting remarks about his own process of thinking and writing in this 2004 interview (from 3min 11sec). He goes to his desk in the morning and writes. No preliminary reading. Then, in the afternoon, he goes to the library. For Burke, writing precedes reading.
Friday, September 25, 2020
Simple example of using XeLaTeX for Devanagari with Velthuis transliteration as input
In earlier posts I addressed this issue, but I think my examples were much too complicated. Here's a minimum working example.
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{sanskrit}
\newfontfamily\sanskritfont[Mapping=velthuis-sanskrit] {Sanskrit 2003}
\begin{document}
\Huge
\noindent
dharmak.setre kuruk.setre samavetaa yuyutsava.h| \\
maamakaa.h paa.n.davaa"scaiva kimakurvata sa.mjaya||
\end{document}
And here's the PDF output:
This was done with the TeXlive distribution of 2020 and XeLaTeX, running on Linux Mint. I have Sanskrit 2003 font installed in my system (and XeLaTeX can see it: see installation instructions 3.4.4). Nothing special was required. Everything is nowadays provided in the TeXlive distribution. The magic happens because of Polyglossia and Fontspec. The manuals for these two packages explains the \setmainlanguage and \newfontfamily commands.
Wednesday, June 03, 2020
The demise of gksudo from Ubuntu-based distributions and what to do about it
- install ssh-askpass
- add this line
SUDO_ASKPASS=/usr/bin/ssh-askpass
to the file/etc/environment
- Then, in menu or batch commands that you want to pop-up a graphical p/w prompt, say
sudo -A <command>
Thursday, February 06, 2020
Automounting google-drive-ocamlfuse: getting Google Drive to appear as a Linux folder
1. Install google-drive-ocamlfuse
2. Line in /etc/fstab (all one line):
gdfuse#default /home/dom/GoogleDriveUofA fuse uid=1000,gid=1000,allow_other,user,_netdev 0 0
3. Contents of executable /usr/bin/gdfuse
#!/bin/bash
su dom -l -c "google-drive-ocamlfuse -label $1 $*"
exit 0
Friday, May 03, 2019
Cyavana and the motif of the tormented meditator
The story tells of an ascetic who is absorbed in meditation while walking. Village lads (pāṃśupiśācas "dust-goblins" in some versions) pelt the ascetic with mud or worse. Eventually they drive spikes into his ears. Nothing disturbs the meditation. But later, on waking, the sage curses the naughty boys.
It is only this year that I have discovered that the earliest version of the story occurs in the Śatapathabrāhmaṇa (thanks to my student Faried Nasir, who wrote an essay on Cyavana).
The tale of Cyavana, SB 4.1.5 contains the antecedent of the "spikes in the ears" theme. In the SB, Śaryāta the Mānava, while wandering, has a clan of juniors who pelt Cyavana with clods believing him to be something valueless (verses 2, 5):
4.1.5.[2] śaryāto ha vā idam mānavo grāmeṇa cacāra | sa tadeva prativeśo niviviśe tasya kumārāḥ krīḍanta imaṃ jīrṇiṃ kṛtyārūpam anarthyam manyamānā loṣṭair vipipiṣuḥ
4.1.5.[3] sa śāryātebhyaścukrodha | tebhyo 'saṃjñāṃ cakāra pitaiva putreṇa yuyudhe bhrātā bhrātrā
4.1.5.[4] śaryāto ha vā īkṣāṃ cakre | yatkimakaraṃ tasmād idam āpadīti sa gopālāṃś cāvipālāṃś ca saṃhvayitavā uvāca
4.1.5.[5] sa hovāca | ko vo 'dyeva kiṃcid adrākṣīd iti te hocuḥ puruṣa evāyaṃ jīrṇiḥ kṛtyārūpaḥ śete tam anarthyam manyamānāḥ kumārā loṣṭair vyapikṣanniti sa vidāṃ cakāra sa vai cyavana iti
References
Eggeling, Julius. 1882–1900. The Śatapatha-Brāhmaṇa According to the Text of the Mādhyandina School. The Sacred Books of the East. Oxford: The Clarendon Press.Leslie, Julia. 2003. Authority and Meaning in Indian Religions. Hinduism and the Case of Valmiki. Aldershot: Ashgate. doi:10.4324/9781315198439. Pages 130 et passim.
Wujastyk, Dominik. 1984. "The Spikes in the Ears of the Ascetic: An Illustrated Tale in Buddhism and Jainism." Oriental Art 2: 189–94.
Tuesday, April 30, 2019
Linux Mint 19.1 Cinnamon and display flickering
I found that the solution proposed there, i.e., to delete the line
CLUTTER_PAINT=disable-clipped-redraws:disable-cullingfrom the file
/etc/environmentworked for me. Logging out and back in after that change gave me a stable display.
Saturday, November 17, 2018
APN problem and mobile data
I found this solution,
and it worked.
NB: on the phone
- turn "USB tethering" off
- enable developer mode (system/aboutphone/7 taps) and switch on USB debugging
- make sure you use a good USB cable
Wednesday, October 17, 2018
Counting on base sixteen and four, as seen in the introductions to some early Bengali printed books
//o
///o
|o
|/o
|//o
|///o
||o
||/o
||//o
||///o
|||o
|||/o
|||//o
|||///o
1J
1/o
1//o
1///o
1|o
1|/o
1|//o
1|///o
1||o
1||/o
1||//o
1||///o
1|||o
1|||/o
1|||//o
1|||///o
2J
2/o
2//o
2///o
Friday, August 31, 2018
Medical e-texts available from the National Institute for Indian Medical Heritage, Hyderabad
- Carakasaṃhitā
- Suśrutasaṃhitā
- Mādhavanidānam
- Nighaṇṭavaḥ (including
- abhidhānamañjarī
- abhidhānaratnamālā
- amarakōśa
- aṣṭāṅganighaṇṭu
- kaiyadēvanighaṇṭu
- camatkāranighaṇṭu
- dravyaguṇasaṅgraha
- dhanvantarinighaṇṭu
- nighaṇṭuśēṣa
- paryāyaratnamālā
- bhāvaprakāśanighaṇṭu
- madanapālanighaṇṭu
- madanādinighaṇṭu
- mādhavadravyaguṇa
- rājanighaṇṭu
- rājavallabhanighaṇṭu
- laghunighaṇṭu
- śabdacandrikā
- śivakōṣa
- sarasvatīnighaṇṭu
- siddhamantra
- siddhasāranighaṇṭu
- sōḍhalanighaṇṭu
- sauśrutanighaṇṭu and
- hr̥dayadīpakanighaṇṭu)
A melancholy reflection from the online documentation:
... किन्तु वर्तमान वैज्ञानिक युग में संस्कृत भाषा के प्रति पाठकों की अत्यल्प रुचि के कारण ...
"But in this scientific age there is little inclination towards reading in the Sanskrit language, and therefore ..."
Thursday, August 23, 2018
Fetching multiple files from an internet site as a batch job
Sometimes one encounters a website that displays a book or manuscript page-by-page as individual jpeg files. But what you need for your research is to have a single PDF of the item, so that you can move about it easily, and consult it offline.
There are several quick ways of getting these images as a batch job: here's one.
- First you have to identify the URL of one of the images. I use Firefox, so I
- first bring up a page that displays the first folio of the MS.
- Then I press ctrl+I to get the "page info" (or Firefox menu Tools/Page Info).
- Then I select "Media" on the top line of the Info window.
- Then scroll down to the graphics file of the whole page, right click and ctrl+c to copy the URL.
You now have a URL that looks like this:
http://awebsite.net/uploads/manuscripts/miscellaneous/sometext/001.jpg
There may be a more direct way of getting this URL, but this is good enough for me.
The next bit is the nice bit. Drop to the command line and use the utility "curl". Here's the syntax ($ is my command prompt):
$ curl -O http://awebsite.net/uploads/manuscripts/miscellaneous/sometext/[001-268].jpg
- Hit "enter" and several hundred jpeg files will be transferred to your directory. It takes a couple of minutes, depending on your bandwidth.
The bit in square brackets, "[001-268]" is curl's syntax for "please fetch 001.jpg, 002.jpg, ... 267.jpg, and 268.jpg". Curl is one of the few tools with this simple ability to fetch lots of different files with a single simple command.
To convert them to a single PDF, I use ImageMagick:
$ convert *.jpg Hayanaratna.pdfand wait for ten seconds.
(I was taught about curl by Patrick McAllister - thanks Patrick!)
A quite different approach is to use wget to fetch a whole website in a single gulp. That's what I use for GRETIL, for example, so that I have the whole archive on my hard drive.
Monday, July 09, 2018
Tweaking the Thinkpad's TrackPoint settings in Linux Mint 19
- /sys/devices/platform/i8042/serio1/serio2
- find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//'
I like sensitivity 125 and speed 80 on the T560; 190 and 90, inertia 10, on the T500.
Update
I found this solution (X1 parameters) that automates everything and survives reboot :-)
Another update, March 2020
Lalufu at github said,You can also usexinput
to modify the libinput values directly:
Runxinput
to show the pointers the system knows about. If you have a ThinkPad you should see something along the lines ofTPPS/2 IBM TrackPoint
or similar.
xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" -0.5
will modify the pointer speed. Play around with the value to see what you like. If you want this to survive a reboot you can stick this in .bash_profile.
Friday, June 08, 2018
nice historiographical point
"Written more in the tradition of Burckhardt and Braudel than Marx and Hobsbawm, the book is an exercise in seeing rather than storytelling."
Tuesday, May 08, 2018
Photo of Prof. Robert Charles Zaehner
Tuesday, May 01, 2018
Etymology is not Lexicography
See Franklin Edgerton, "Etymology and Interpretation," Proceedings of the American Philosophical Society, 1938 , 705-14. http://www.jstor.org/stable/984947
Tuesday, April 17, 2018
Improving PDFs
So I'm going to write down here what I do, so that at least the information is available in one place. I assume a general knowledge of Linux and an ability to work with command-line commands.
If I receive a PDF that is a scanned book, with 1 PDF page = one book opening, I want to chop it up so that 1 PDF page = 1 book page.
- make a working directory
- use pdftk to unpack the PDF into one file per page:
> pdftk foobar.pdf burst
- I now have a directory full of one-page PDFs. Nice.
- convert them into jpegs using pdf2jpegs, a shell script that I wrote that contains this text:
#!/bin/bash
# convert a directory full of pdfs into jpegs
for i in *.pdf; do pdftoppm -jpeg -r 400 "$i" >"$i.jpg"; done - I now have a directory full of jpegs, one jpeg per page.
- Start the utility scan-tailor and use it to
- separate left and right pages into separate files
- straighten the pages
- select the text area of each page
- create a margin around the text
- finally, write out the resulting new pages
- I now have a directory (../out) full of TIFF files, one page per file, smart.
- Combine the TIFFs into a single PDF using my shell script tiffs2pdf:
#!/bin/bash
# Create a PDF file from all the .tiff files in the current directory.
# The argument provides the name of the output file (with .pdf appended).
echo "Created a PDF from a directory full of .tif files"
echo "Single argument - the filename of the output PDF (no .pdf extension)"
tiffcp *.tif "/tmp/${1}.tiff"
tiff2pdf "/tmp/${1}.tiff" > "${1}.pdf"
echo "Created ${1}.pdf"
rm "/tmp/${1}.tiff"
echo "Removed temporary file /tmp/${1}.tiff"
# thanks to http://ubuntuforums.org/showthread.php?t=155628 - I now have a nice PDF that has one smart page per PDF page.
- If I want it OCRed, then I usually use Adobe Acrobat, a commercial program. But if I'm uploading to Archive.org, that isn't necessary because Archive.org does the OCR work using Abbyy.
That's all, folks!
Sunday, February 04, 2018
My personal protest withdrawal from USA academic conferences
Like many, I am deeply dismayed by the statements and policies of current USA governance. The statements and decisions that have been issued from the USA government over the last year, including the disgracefully vulgar, racist statements just last month, have been increasingly repellent.
I have been torn about whether to travel to the USA to work with and support all my liberal, educated, humanitarian friends there, or whether to take a moral stand to treat the USA as a pariah State. I still do not feel certain about this matter. Perhaps it is better to go to the USA and support my embattled friends and colleagues? Last year, after soul-searching, I went to the American Oriental Society conference in LA. But after a year of thinking about these issues, I have decided that I will take a different stand at this time, and stay away
My thinking on these issues was nudged forward decisively by a recent report that I heard on the BBC World Service from an Indian lady journalist who described the surprise, compulsory biometric facial scanning that she was subjected to at Dulles, on attempting to exit from the USA. She was told that it was mandatory for non-USA citizens and that she could be detained in the USA if she did not comply. The USA's Department of Homeland Security has recently introduced this biometric face-scanning technology at many airports for departing passengers (see here). The technology has been shown to be deeply flawed technically, morally and legally (see NY Times report of Dec 21, and the Georgetown University Law School report). Amongst other profound problems, the software over-targets women and people with dark skin colour, producing 4% of false-positives in these cases. As the Georgetown report finds,
Innocent people may be pulled from the line at the boarding gate and subjected to manual fingerprinting at higher rates as a result of their complexion or gender.The technology being compulsorily applied to all non-USA citizens is demeaning, invasive and violates an individual's right to privacy.
USA Immigration already has assumed the right to require all social media passwords and to review up to five years of past social media postings, and copy all data from mobile phones or laptops [1, 2, etc. etc.]. This again violates individual privacy rights. It also requires individuals to violate the terms of their contracts with service providers who require login details not to be shared. In the case of university staff such as myself, it also violates the University's terms of use of my laptop, that contains or may refer to private information concerning my students. I am required by the University of Alberta to keep my laptop and phone encrypted and I may not share the data with anyone outside the University.
Canada recently agreed, under Bill C-23, that the USA immigration authorities can arrest people while still in Canada, when they go through the USA immigration process while still at Canadian ports (1, 2, 3, etc. etc.).
I am a British Citizen and a European Citizen living as a resident in Canada. I have no criminal record, nor any specific reason to expect difficulty entering or leaving the USA. While I am ashamed by the need to assert it, I am a white, Caucasian, male university professor. From the point of view of USA governance, I am almost as good as a Norwegian. But I am acutely aware that many good people in the USA, or entering and leaving the USA, including now my Indian friends, do not have the same automatic advantages of skin colour, gender or citizenship. Families are being split up, people are being forced to travel to war-torn countries or otherwise being denied the American promise of safety symbolized since 1875 by the Statue of Liberty. All international travellers are routinely being subjected to threatening, invasive and demeaning procedures.
For all these reasons, I have decided that I wish protest the USA governance and USA immigration policies and procedures. This is done both in solidarity with my friends, and also as a matter of personal choice, because I do not wish to expose myself personally to the USA immigration service's demeaning and threatening procedures.
I am extremly uncertain about this decision. Perhaps all the above reasons should rather drive me to visit my colleagues in the USA and offer them friendship and collegiality in difficult times. I don't know what the right answer is. Last year, I had many of the same misgivings, but I decided to visit the USA. On this occasion I'm taking the opposite decision, and staying away.
I apologize to my friends in the USA and I look forward to happier times. I only hope my protest contributes in a small way to encouraging good people in the USA to vote wisely and to lobby their representatives energetically.
Sunday, November 26, 2017
Helpful notes on bulk downloading from Archive.org
- https://gareth.halfacree.co.uk/2013/04/bulk-downloading-collections-from-archive-org
- https://pypi.python.org/pypi/internetarchive