slavonic / cu-tex

Church Slavonic support for TeX and derivatives
MIT License
4 stars 2 forks source link

Reverse color of Znamenny marks #55

Open typiconman opened 5 years ago

typiconman commented 5 years ago

Right now we provide the autocolormarks feature, which automatically renders cinnabar marks in red using internally the \cuKinovar macro. There are instances when we want the reverse to be true: the black neumes to be rendered in red and the red marks rendered in black. This is actually trivial -- we can set the main font text to 0.80,0.03,0.01 (kinovar), and then set the kinovar color to black. However, it should be possible for the two color schemes to coexist in the same document. For this, I think we need: \cuKrukPara{ foo \\ bar } (renders neumes in black and marks in red) and \cuKrukParaInv{ foo \\ bar} (renders marks in black and neumes in red)

@pgmmpk Please discuss if there is a better way of doing this. @starover77 Please comment.

Another option may be to add color = inverted as a parameter to \cuKrukPara.

pgmmpk commented 5 years ago

Option invertColor=true feels best to me. Implementation should be easy:

  1. locally re-define \\cuKinovarColor to set textcolor to black
  2. locally set main text color to kinovar
starover77 commented 5 years ago

Here are examples of polyphonic Put chants from various manuscripts, which demonstrate what we are trying to reproduce in regard to reverse coloring. Of course, many more examples are found in the Demestvenny Azbuka of Kalashnikov, where it is traditional to present the Demestvenny neumes in reverse color. example_1 example_2 example_3 example_4 example_5 3 - Фрагмент из азбуки 18-19 века

typiconman commented 5 years ago

Right now it is not possible to have more than one line of kryuki positioned above a line of text.

This is a separate issue from the issue of inverting color. I think it is difficult to do.

typiconman commented 5 years ago

I opened up a separate issue #57 for the support of multiple lines of neumes.

typiconman commented 5 years ago

@pgmmpk Will you have a chance to work on this? Your TeX programming skills are way better than mine.