Skip to content

No way to escape keyword separator characters #5337

Closed
@sauliusg

Description

JabRef version 5.0-dev (commit db96f88 master) on Ubuntu-16.04 x86_64

[x] I have tested the latest development version from * master db96f88 Fix problem with search and switching between libraries (#5326) from https://github.com/JabRef/jabref.git and the problem persists

Hierarchical keywords use '>' as a default "hierarchy delimiter", configurable as per keyword group. There seems to be, however, not way to escape that character if it is included in a keyword itself"

@Article{id3,
title = {Some title},
keywords = {human > languages, more-or-less \<\> values, interlinguistics},
}

In this example, the third '>' character is treated as herarchy separator, producing

> kwds
  > more-or-less \<\
    > values

instead of the intended

> kwds
  > more-or-less \<\ values

hierarchy.

Steps to reproduce the behavior:

  1. Start JabRef
  2. Load the test-keyword-groups.bib.txt library
  3. Switch on the group interface.

A currently obvious workaround to change the default keyword separator character > to somthing else may not work if all characters are used in keyword values, and on may receive unexpected keywords when reading in external entries into the library.

The solution could be

  • either introduce an escape character, could be backslash (\) by default, that could escape the special meaning of >;

  • or use encoding of the > in a similar way how XML uses it, for example by setting special codes > and &amp to mean > and '&', respectively.

The same issue is of course valid to the comma (,) keyword separator character.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions