Many many thanks to everyone who took the time to help me out with the Devanagari ASCII to unicode problem (including one very helpful off-list email). And many many many apologies for my very late reply (I started a new job earlier this week).
I think the conclusion is that I was going about the problem the wrong way---that there is no one-to-one mapping between the Devanagari ASCII font and unicode font. Rather, it is many-to-one. The SIL resources were very helpful. They have a teckit map there for Preeti to unicode (as indicated by Lorna). I have not actually tried it yet; but there is a good chance that it will work or will work with small modification. Many many thanks to all, Dan On Wed, Feb 21, 2018 at 10:34 PM, Lorna Evans <lorna_ev...@sil.org> wrote: > I think this is a TECkit converter for the Preeti font: > > https://github.com/silnrsi/wsresources/tree/master/scripts/Deva/legacy/sag-preeti/mappings > > Lorna > > > -------- Original Message -------- > Subject: Re: [XeTeX] Devanagari ASCII to Unicode mapping > From: ShreeDevi Kumar <shreesh...@gmail.com> > To: XeTeX (Unicode-based TeX) discussion. <xetex@tug.org> > Date: 2/17/2018 11:11 AM > > Please see > > view-source:http://hindi-fonts.com/tools/Preeti-to-Unicode-Converter > > There is no direct mapping, but array_one has the ASCII codes for Preeti, > while array_two has the corresponding unicode. > > ShreeDevi > ____________________________________________________________ > भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com > > On Sat, Feb 17, 2018 at 10:32 PM, ShreeDevi Kumar <shreesh...@gmail.com> > wrote: >> >> > What I think I am looking for is something that would map a document >> typeset using something like the Devanagari Preeti font >> (https://fonts2u.com/preeti.font), which seems to have the Devanagari >> glyphs encoded in the range 0x00-0x7F, to something like the >> Devanagari unicode font Mukta >> (https://ektype.in/scripts/devanagari/mukta.html) in the range >> 0x0900-0x097F. >> >> Please try http://www.ashesh.com.np/preeti-unicode/ >> >> Also see >> >> https://github.com/Shuvayatra/preeti >> >> ShreeDevi >> ____________________________________________________________ >> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >> >> On Sat, Feb 17, 2018 at 10:27 PM, Mike Maxwell <maxw...@umiacs.umd.edu> >> wrote: >>> >>> On 2/17/2018 11:08 AM, Daniel Greenhoe wrote: >>>> >>>> Does anyone know where I can find an ASCII to Unicode mapping for >>>> Devanagari? >>>> >>>> For example, it seems that the Devanagari glyph "ब" is encoded as >>>> 0x61 (hex) in ASCII (lower case 'a' for the Latin alphabet), but is >>>> 0x092C in the Unicode standard: >>>> http://www.unicode.org/charts/PDF/U0900.pdf >>>> >>>> So what I am asking for is a map (or table) that maps 0x00-0x7F in >>>> Devanagari ASCII to 0x0900-0x097F in Unicode. >>> >>> >>> In addition to the ASCII-to-Devanagari transcription system that Philip >>> Taylor mentioned, you may be interested in the ISCII encoding for >>> Brahmi-derived writing systems, including Devanagari: >>> >>> >>> https://en.wikipedia.org/wiki/Indian_Script_Code_for_Information_Interchange >>> >>> This is _not_ an ASCII-to-Devanagari encoding, rather it leaves the ASCII >>> range intact, and encodes Devanagari (etc.) in the range 128 (actually, >>> 161)-255. It was afaik never widely used, but there were (and probably >>> still are) fonts for it. I don't imagine those fonts would be terribly high >>> quality by today's standards, e.g. I'd be surprised if they handled conjunct >>> characters. >>> >>> FWIW, there was a similar encoding called TSCII for Tamil. >>> >>> iconv can be used to map TSCII to other encodings, but for some reason it >>> doesn't seem to have ISCII in its reportoire (it does include VISCII, but >>> that's a legacy Vietnamese encoding). >>> -- >>> Mike Maxwell >>> "My definition of an interesting universe is >>> one that has the capacity to study itself." >>> --Stephen Eastmond >>> >>> >>> >>> -------------------------------------------------- >>> Subscriptions, Archive, and List information, etc.: >>> http://tug.org/mailman/listinfo/xetex >> >> > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex