On 03/06/2017 10:46 AM, Abbé Jacques Peron wrote:
2017-03-06 9:54 GMT+01:00 Pierre Couderc <pie...@couderc.eu <mailto:pie...@couderc.eu>>:

    On 03/05/2017 05:16 PM, Abbé Jacques Peron wrote:
    Excuse me, I forgot replying to all : a solution, to benefit from
    the feature of Gregorio while directly typing unicode characters
    ℣, ℟ and ✠, is to type those commands in your preamble :

    \catcode`\℣=\active \def ℣{\Vbar}
    \catcode`\℟=\active \def ℟{\Rbar}
    \catcode`\✠=\active \def ✠{\grecross}
    Thank you very much, it works fine.
    An so it shows that my font is fine.

    But why this is necessary ?
    I am in utf8. Is there a good reason to bother the user with these
    declarations ?
    In what case the user may use ✠ and not wanting ✠ to be printed..?


These declarations replace characters by gregoriotex's commands, so they don't use characters from the font itself. If you want it, you can use any character as any command with such declarations. For example, here is what I type to have all ℣. red, without typing \color{gregoriocolor} each time :
|\catcode`\℣=\active \def ℣#1{%
{\color{gregoriocolor} \Vbar}%
\mbox{\hspace{-.2ex}{\color{gregoriocolor}#1}}%
}|

This is very clear and useful. Merci beaucoup.
_______________________________________________
Gregorio-users mailing list
Gregorio-users@gna.org
https://mail.gna.org/listinfo/gregorio-users

Reply via email to