As it stands, the plugin decides on the file based the extension, which I believe happens in the following lines
|
if (inputFile.endsWith(".hwp")) { |
|
hType = HanType.HWP; |
|
hwp = new HwpFile(inputFile); |
|
} else if (inputFile.endsWith(".hwpx")) { |
|
hType = HanType.HWPX; |
|
hwpx = new HwpxFile(inputFile); |
|
} |
However, on Linux systems, generally the file extension doesn't matter much and ideally the file can still be detected based on the mime type.
Would it be possible to use mime types instead of the extensions?
As it stands, the plugin decides on the file based the extension, which I believe happens in the following lines
H2Orestart/source/soffice/WriterContext.java
Lines 86 to 92 in df06ca5
However, on Linux systems, generally the file extension doesn't matter much and ideally the file can still be detected based on the mime type.
Would it be possible to use mime types instead of the extensions?