FTS for UTF-8 Text Formats in Non-TXT File Extensions
Kovid,
I would like FTS to index RIS "Citation" file formats, which are simply UTF-8 Text in a Non-TXT File Extension/format in Calibre, but that have a rigidly defined content structure via RIS Tags (e.g. AB - "Abstract") for which there is a great deal of functionality in Calibre now via 3 different plugins.
I have not been able to determine any method to do so other than writing a new InputFormatPlugin (and a new OutputFormatPlugin) to "convert" UTF-8 Text RIS into UTF-8 Text TXT, saving a .ris rather than a .txt.
Is there another way I haven't found, such as an internal dict in an already-existing Calibre module that relates an input format to its equivalent input and output format which could be updated by an existing plugin, such as: {'RIS':'TXT'} ?
Or by MIME Type? {'RIS':'application/x-research-info-systems'} and {'application/x-research-info-systems':'text/plain'}.
Or should I write 2 new conversion plugins just to do the above?
Thanks for your help.
DaltonST
Last edited by DaltonST; 03-08-2023 at 12:35 PM.
Reason: MIME Type
|