Support for XML with different file extension in GUI

Monday, 5 November 2018 · 9 messages · last reply 15 Nov 2018
KC
Kevin Cline5 Nov 2018 17:52 #
Hello, In the GUI, is there any way to set the query context to an XML file that has an extension other than .xml ? Renaming the file works, obviously, but this isn't ideal, as the source of the data exports to and imports from another extension. Also, is it possible to enable syntax highlighting for XML files without changing the extension? I added the extension in Options->Preferences->File Filter, but nothing changed. Thank you for your help.
CG
Christian Grün5 Nov 2018 18:42 #
Hi Kevin, Do your files have a typical XML file suffix, or do you have all kinds of suffixes that are usually not associated with XML data? In the first case, we could easily extend our static suffix list; in the latter case, I’ll think about some more alternatives. Best, Christian
Quoted text · Kevin Cline · 11 lines
On Mon, Nov 5, 2018 at 4:52 PM Kevin Cline <admin at somelinguist.org> wrote: > > Hello, > > In the GUI, is there any way to set the query context to an XML file that has an extension other than .xml ? > > Renaming the file works, obviously, but this isn't ideal, as the source of the data exports to and imports from another extension. > > Also, is it possible to enable syntax highlighting for XML files without changing the extension? I added the extension in Options->Preferences->File Filter, but nothing changed. > > Thank you for your help.
KC
Kevin Cline5 Nov 2018 20:00 #
Hi Christian, In this case, I'm dealing with just a few different extensions used by various linguistic software. While it would solve my problem, I'm not sure how helpful it would be others to include them in the static suffix list. Something more general might be helpful for others. The extensions I'm working with are .fwdata, .flextext, .lift, and .lift-ranges. All are just XML files. Thanks, Kevin
Quoted text · Christian Grün · 26 lines
On Mon, Nov 5, 2018 at 11:43 AM Christian Grün <christian.gruen at gmail.com> wrote: > > Hi Kevin, > > Do your files have a typical XML file suffix, or do you have all kinds > of suffixes that are usually not associated with XML data? In the > first case, we could easily extend our static suffix list; in the > latter case, I’ll think about some more alternatives. > > Best, > Christian > > > > On Mon, Nov 5, 2018 at 4:52 PM Kevin Cline <admin at somelinguist.org> wrote: > > > > Hello, > > > > In the GUI, is there any way to set the query context to an XML file that has an extension other than .xml ? > > > > Renaming the file works, obviously, but this isn't ideal, as the source of the data exports to and imports from another extension. > > > > Also, is it possible to enable syntax highlighting for XML files without changing the extension? I added the extension in Options->Preferences->File Filter, but nothing changed. > > > > Thank you for your help.
CG
Christian Grün6 Nov 2018 18:32 #
Hi Kevin, I’ll probably add an editable list of XML suffixes to the GUI preference dialog. This suffix list will then be considered in all GUI operations that check for the file type (file dialogs; set query context; highlighting; database creation; etc). I’ll give you an update once this will be available. Best, Christian
Quoted text · Kevin Cline · 42 lines
On Mon, Nov 5, 2018 at 7:00 PM Kevin Cline <admin at somelinguist.org> wrote: > > Hi Christian, > > In this case, I'm dealing with just a few different extensions used by > various linguistic software. While it would solve my problem, I'm not > sure how helpful it would be others to include them in the static > suffix list. Something more general might be helpful for others. > > The extensions I'm working with are .fwdata, .flextext, .lift, and > .lift-ranges. All are just XML files. > > Thanks, > > Kevin > > On Mon, Nov 5, 2018 at 11:43 AM Christian Grün > <christian.gruen at gmail.com> wrote: > > > > Hi Kevin, > > > > Do your files have a typical XML file suffix, or do you have all kinds > > of suffixes that are usually not associated with XML data? In the > > first case, we could easily extend our static suffix list; in the > > latter case, I’ll think about some more alternatives. > > > > Best, > > Christian > > > > > > > > On Mon, Nov 5, 2018 at 4:52 PM Kevin Cline <admin at somelinguist.org> wrote: > > > > > > Hello, > > > > > > In the GUI, is there any way to set the query context to an XML file that has an extension other than .xml ? > > > > > > Renaming the file works, obviously, but this isn't ideal, as the source of the data exports to and imports from another extension. > > > > > > Also, is it possible to enable syntax highlighting for XML files without changing the extension? I added the extension in Options->Preferences->File Filter, but nothing changed. > > > > > > Thank you for your help.
CG
Christian Grünin reply to Liam R. E. Quin, 14 Nov 2018, 20:1714 Nov 2018 19:20 #
Good news: It has already been implemented, and it will be available soon after we’ve done some more testing! Am Mi., 14. Nov. 2018, 19:17 hat Liam R. E. Quin <liam at fromoldbooks.org> geschrieben:
Quoted text · Christian Grün · 19 lines
> On Tue, 2018-11-06 at 18:32 +0100, Christian Grün wrote: > > Hi Kevin, > > > > I’ll probably add an editable list of XML suffixes to the GUI > > preference dialog. > > I think this would be very helpful - recently i was making an index of > some epub files - they are zip'd directories of (mostly) XML, but i > have re name them to end in .zip and/or expand them and rename > individual files right now. Or write a query to do it :) > > > -- > Liam Quin, https://www.holoweb.net/liam/cv/ > Web slave for vintage clipart http://www.fromoldbooks.org/ > Available for XML/Document/Information Architecture/ > XSL/XQuery/Web/Text Processing/A11Y work & consulting. > >
LQ
Liam R. E. Quinin reply to Christian Grün, 6 Nov 2018, 18:3214 Nov 2018 20:17 #
Quoted text · Christian Grün · 5 lines
On Tue, 2018-11-06 at 18:32 +0100, Christian Grün wrote: > Hi Kevin, > > I’ll probably add an editable list of XML suffixes to the GUI > preference dialog.
I think this would be very helpful - recently i was making an index of some epub files - they are zip'd directories of (mostly) XML, but i have re name them to end in .zip and/or expand them and rename individual files right now. Or write a query to do it :)
-- Liam Quin, https://www.holoweb.net/liam/cv/ Web slave for vintage clipart http://www.fromoldbooks.org/ Available for XML/Document/Information Architecture/ XSL/XQuery/Web/Text Processing/A11Y work & consulting.
LQ
Liam R. E. Quinin reply to Christian Grün, 14 Nov 2018, 19:2014 Nov 2018 22:16 #
Quoted text · Christian Grün · 4 lines
On Wed, 2018-11-14 at 19:20 +0100, Christian Grün wrote: > Good news: It has already been implemented, and it will be available > soon > after we’ve done some more testing!
you people are beyond awesome! :D
Quoted text · Christian Grün · 1 line
>
-- Liam Quin - web slave for https://www.fromoldbooks.org/ with fabulous vintage art and fascinating texts to read. Click here to have the slave beaten.
CG
Christian Grün15 Nov 2018 16:46 #
Thanks for the kudos ;) The new snapshot is online [1]. @Kevin: The project-specific XML suffixes can now be adjusted via the GUI Preferences dialog. @Liam: epub is now detected as archive suffix. [1] http://files.basex.org/releases/latest/
Quoted text · Liam R. E. Quin · 17 lines
On Wed, Nov 14, 2018 at 9:16 PM Liam R. E. Quin <liam at fromoldbooks.org> wrote: > > On Wed, 2018-11-14 at 19:20 +0100, Christian Grün wrote: > > Good news: It has already been implemented, and it will be available > > soon > > after we’ve done some more testing! > > you people are beyond awesome! :D > > > > > > -- > Liam Quin - web slave for https://www.fromoldbooks.org/ > with fabulous vintage art and fascinating texts to read. > Click here to have the slave beaten. >
KC
Kevin Cline15 Nov 2018 17:49 #
Thanks! That's great! Kevin
Quoted text · Christian Grün · 31 lines
On Thu, Nov 15, 2018 at 9:46 AM Christian Grün <christian.gruen at gmail.com> wrote: > Thanks for the kudos ;) The new snapshot is online [1]. > > @Kevin: The project-specific XML suffixes can now be adjusted via the > GUI Preferences dialog. > @Liam: epub is now detected as archive suffix. > > [1] http://files.basex.org/releases/latest/ > > > > On Wed, Nov 14, 2018 at 9:16 PM Liam R. E. Quin <liam at fromoldbooks.org> > wrote: > > > > On Wed, 2018-11-14 at 19:20 +0100, Christian Grün wrote: > > > Good news: It has already been implemented, and it will be available > > > soon > > > after we’ve done some more testing! > > > > you people are beyond awesome! :D > > > > > > > > > > > -- > > Liam Quin - web slave for https://www.fromoldbooks.org/ > > with fabulous vintage art and fascinating texts to read. > > Click here to have the slave beaten. > > >

⚡Generated with XQuery