java allows you to draw single macrons, that is, String s = "a\u0305c\u0305" :

enter image description here

It is necessary to make an inversion (in fact - draw a line) above the line containing the other macros

eg: string with iversion

how to do it if they simply stack with "a\u0305\u0305" ?

Closed due to the fact that the essence of the question is not clear to the participants by Denis , user194374, Kromster , cheops , Grundy Jul 17 '16 at 17:04 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • please specify what it means to stack. in the Russian language there is such an obsolete (or rep.-desh.) word , but its meaning clearly cannot refer either to programming in general or to characters in particular. - aleksandr barakin
  • overlap, and at the output, the difference between "a \ u0305" and "a \ u0305 \ u0305" is such that in the second case the macron above the symbol will be darker (in Idea). I also need to draw them both, over each other - Kiramm
  • What draws the text? And where? - D-side
  • It is not drawn, I said it figuratively. Output to the file - Kiramm

1 answer 1

Something like this

 System.out.println("1"+ "\u0305"); 

Only "output device" must understand unicode.

Here is a useful link

https://en.wikipedia.org/wiki/Overline

http://graphemica.com/0305

Or was the question about something else?

  • and more than 1 line can be withdrawn? - pavel
  • as I understand it, it depends more on the environment that will draw this line. Java can send any character set to stdout, and how this stdout uses them is its business. For example, this, in the ideal case, should give two overlays System.out.println ("1" + "\ u0305" + "\ u0305"); - rjhdby
  • @rjhdby should, but, in the idea (as in eclipse) they simply overlap each other - Kiramm