Stratos kovalkov Papadoudis
2014-08-04 23:27:21 UTC
Modern source authoring supports non-ASCII text, appearing in source
comments and/or output text.
EXAMPLES OF USAGE
- box initial program description with box drawing characters isntead of a
spam of ASCII symbols and/or characters:
┌─┬─┐╒═╤═╕╓─╥─╖╔═╦═╗ +-+-+
│ │ ││ │ │║ ║ ║║ ║ ║ | | |
├─┼─┤╞═╪═╡╟─╫─╢╠═╬═╣ instead of +-+-+
│ │ ││ │ │║ ║ ║║ ║ ║ | | |
└─┴─┘╘═╧═╛╙─╨─╜╚═╩═╝ +-+-+
- using the same box drawing to format program output nicely.
- use non-latin characters to output symbol closer to the mathematical
equivalent: scalar field strength φ=0.100Ε+001, with 'φ' instead of 'phi' or
other
The last reason appears to be most common, but the other ones are not
insignificant. Imagine for example how much clearer git's commit tree with
box drawing instead of ASCII will be on stdout.
Now what does git code in a lyx file? Probably nothing, but whenever a
programmer wishes to list their code in their dissertation for example, they
cannot do so without LyX deleting all the non-ASCII characters. (like it
happened to me)
Is there a really serious limitation that prevents lyx from outputting
program listings in UTF-8? If there is real none, is there room to implement
this enhancement in the near future?
I did not post a ticket for this yet due to it's ambiguous nature.
comments and/or output text.
EXAMPLES OF USAGE
- box initial program description with box drawing characters isntead of a
spam of ASCII symbols and/or characters:
┌─┬─┐╒═╤═╕╓─╥─╖╔═╦═╗ +-+-+
│ │ ││ │ │║ ║ ║║ ║ ║ | | |
├─┼─┤╞═╪═╡╟─╫─╢╠═╬═╣ instead of +-+-+
│ │ ││ │ │║ ║ ║║ ║ ║ | | |
└─┴─┘╘═╧═╛╙─╨─╜╚═╩═╝ +-+-+
- using the same box drawing to format program output nicely.
- use non-latin characters to output symbol closer to the mathematical
equivalent: scalar field strength φ=0.100Ε+001, with 'φ' instead of 'phi' or
other
The last reason appears to be most common, but the other ones are not
insignificant. Imagine for example how much clearer git's commit tree with
box drawing instead of ASCII will be on stdout.
Now what does git code in a lyx file? Probably nothing, but whenever a
programmer wishes to list their code in their dissertation for example, they
cannot do so without LyX deleting all the non-ASCII characters. (like it
happened to me)
Is there a really serious limitation that prevents lyx from outputting
program listings in UTF-8? If there is real none, is there room to implement
this enhancement in the near future?
I did not post a ticket for this yet due to it's ambiguous nature.