I have several languages/keyboard layouts on my Mac-pro (Yosemite). I want to write in Armenian/Bengali/Hebrew and so on. These keyboards/languages are formally part of Mac's Yosemite so I have no problem in using them in the app Pages (say). Is a similar use possible with (Xe)LaTeX? I.e. is it possible for a Yosemite user to open a TeX editor and simply switch between the languages/keyboards available in Mac's Yosemite and the output looks reasonable (i.e. not thousands of boxes and question marks).
To be clear, the solution should be quite general. For instance, the Polyglossia package does not support all languages the Mac's Yosemite do. Also some other solutions require you input your text in latin which then is converted by XeLaTeX (or something else?), this is a horrible solution!
I want to input as I wish and make TeX recognize that and print it.
polyglossiawith appropriate fonts. See e.g. How to write Bengali in LaTeX? and Help getting started with Hebrew in babel. Nothing specific on Armenian here, I don't think, but the principles are the same. – Alan Munn Apr 20 '15 at 12:05\beginLor a higher level language switch. – David Carlisle Apr 20 '15 at 12:59