г before a и in cursive
How do you know its a г next to a и and not a ш in cursive?
г has a round top, while ш has a sharp tip. In addition, there is a little space between letters.
However, you can find that there are no difference between them in reality. You can only guess. Some people make a line under ш and above т to make it clearer. Anyway, г, и, м, л, ш, т may cause confusion when combined one to another in handwriting.