<div dir="ltr">Sorry, I have not followed this discussion carefully on what others said but if all fails, I would use an external program (a per-processor) to do that. You can actually can make it automatic by just using the write18 feature of TeX. You write your tex document in VQR, then TeX calls your per-processor and converts your VQR to unicode and finally compiles your unicode TeX document, giving you PDF.<br>
<br><div class="gmail_quote">On Sat, Nov 26, 2011 at 12:26 PM, Bruno Le Floch <span dir="ltr"><<a href="mailto:blflatex@gmail.com">blflatex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Bruno Le Floch wrote:<br>
>> Is it simply a matter of going through the string and replace various<br>
>> characters by TeX accents (and take care of character order), or does<br>
>> the result have to be Unicode?<br>
>><br>
>> E.g., does it have to be a(a^ → ăâ, or can it be a(a^ → \u{a}\^{a} ?<br>
>> If the second one is ok, then it shouldn't be too hard to write the<br>
>> conversion in TeX macros. Please provide a list of the necessary<br>
>> conversion rules.<br>
><br>
> Vietnamese is difficult for TeX, because over a single<br>
> character there can be a requirement for both an<br>
> accent (to indicate a pronunciation different from<br>
> that for the unaccented letter) and a tone marker<br>
> (which applies to the whole word, but which has<br>
> a canonical placement that may well be on an<br>
> already accented letter). Hàn Thế Thành created<br>
> a way of accomplishing this using standard TeX,<br>
> but XeTeX can do it natively. Incidentally,<br>
> the "ế" at the end of Thành's middle name demonstrates<br>
> exactly the problem : something that TeX cannot<br>
> accomplish without special fonts, since it has<br>
> no primitive for positioning two diacritics over<br>
> a single character.<br>
<br>
</div>Thanks for the explanation. So we need to produce a Unicode string.<br>
<br>
Firstly, I should have asked: is it possible to require the Vietnamese<br>
VIQR input as an argument of a macro, rather than being typeset<br>
directly? e.g., \viqr{a^o' e\.}. I'll assume that it is ok.<br>
<br>
Then do you have a list of all Vietnamese characters and their VIQR<br>
representation? Or some precise reference to what transformation you<br>
want to apply? In particular, how many different characters do you<br>
expect to get on output (that should be the size of the "alphabet")?<br>
<br>
Regards,<br>
<font color="#888888">Bruno<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>