José Matos wrote: > On Wednesday 14 February 2007 9:35:39 am ChangGil Han wrote: >> Hello, >> Then how about using Import menu button, such as "Import -> CJK-LyX-1.4.x >> -> {Korean(euc-kr), Chinese(big5),...}" ?..... I hope I am not asking >> too much!
Yes, that would be easily doable. What do others think? If this is not too much clutter of the import menu I am going to implement that. > I am curious, can't we use file to discover the file encoding? We should not do that. Some programs (including file) pretend to be able to detect encodings automatically. But it is the very nature of encodings that you have to specify which one you use. Those programs that try to detect the encoding do use some heuristics. Some fail quite often (IIRC kwrite), others do mostly work (e.g. vim), but since this cannot work reliably I do not want to risk damaging a file of non-CJK LyX simply because it might be one of CJK-LyX. Georg