I've been banging my head against this for a while today, without resolving things. I see that the UTF8 hyph-sa.tex file contains the rules for hyphenating Sanskrit in several scripts, including Roman (Latin?). The way this should work, I believe, is that as long as I flag my words as being in Sanskrit, then they'll get appropriately hyphenated whichever of these scripts I use.<br>
<br>But I can't find a way to get Polyglossia to accept Sanskrit written in Roman script.<br><br>If I say <br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">\setotherlanguage{sanskrit}</p>
<p style="margin: 0px; text-indent: 0px;">\newfontfamily\devanagarifont[Script=Latin]{Gentium Basic}</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">or even <br></p><p style="margin: 0px; text-indent: 0px;">
\newfontfamily\devanagarifont{Gentium Basic}</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">and then <br></p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">
\setlength\textwidth{1cm} % or whatever, to get lots of hyphenating.<br><style type="text/css">p, li { white-space: pre-wrap; }</style></p><p style="margin: 0px; text-indent: 0px;">\textsanskrit{manum ekāgram āsīnam abhigamya maharṣayaḥ |}</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">I'm really not sure what I'm getting as a result. It looks as if it's roman script being hyphenated as if it were Devanagari. The initial a- of several words, like arhasi, gets separated (a-rhasi), which might just about look okay in Nagari, but not in romanisation. Am I actually getting the right thing, but I just need to crank up the first argument of hyphenmins? (This does seem to improve things.)</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Why do I have to pretend that this is Devanagari (\devanagarifont)? I would like to be able to define \sanskritfont and then define the script, e.g.,</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">\newfontfamily\sanskritfont[Script=[Devanagari|Latin|Malayalam|Bengali]{Code2000}</p><p style="margin: 0px; text-indent: 0px;"><br>
</p><p style="margin: 0px; text-indent: 0px;">I think I'll stop. You can see I'm in a terrible muddle.</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Has someone got this running already? Yves? Jonathan?</p>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Best,</p><p style="margin: 0px; text-indent: 0px;">Dominik<br></p>